![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Removable Media Drives Support Forum for removable media; Quantum, Iomega, Sony, HP |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
|
shared folder gets unshared???
Hi i got a shared folder on a external drive. The problem is when i turn the external hard drive off or restart my computer it is no longer shared and i have to set it to be shared again. I have other shared folders on the computer but they stay shared, how can i make the one on the external hard drive stayed shared.,,,,, Running XP Pro. Thanks for you time Doj Harris
|
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Hardware Tech Specialist
Join Date: Mar 2007
Location: Los Angeles
Posts: 705
OS: Mac OS X / W2K3 Server / XP Home/MCE/Pro / Vista Ultimate / Ubuntu Linux
|
Re: shared folder gets unshared???
it's a removable drive... windows is designed by default to do this... you neverk now when you may pull the drive and invalidate the share and very well may turn it back on another time and it will appear as a different drive letter. I bet there is a workaround for it but this is the behavior I've experienced since day one.
__________________
{{{{ Scott - 25+ Years HW & SW Expertise - Dos, Linux, Mac OS X, & Windows }}}} Abit IP35 / Core 2 Quad Q6600 / APC 650 UPS / Antec 900 ATX w/Antec Trio 550 PS XFX GeForce 8400GS w/512MB / 320GB Maxtor SATA II HD / 4GB Corsair CAS4 DDR2 HP Laser P1006 & PS 2610 / D-Link DGL-4500 Router / Dell 24" LCD / Asus G1 Laptop |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Nov 2007
Posts: 4
OS: XP
|
Re: shared folder gets unshared???
Solved this with a little batch file and a download of a little file from MS.
First you'll need RMTSHARE.EXE from MS. This can be found inside the RMTSHAR.exe self extractor (note there's no last "E") from this link: ftp://ftp.microsoft.com/bussys/winnt...kit/nt40/i386/ (Which I found here: http://support.microsoft.com/kb/172599 but failing that google for ' file: RMTSHARE.EXE' without the quotes) Run that, take the resulting RMTSHARE.EXE and place it wherever you like, for example in C:\Scripts Create a batch file in the same directory (rename a text file) with this in it (edited to suit as below) RMTSHARE.EXE \\yourComputerName\"shareNameYouWant"="driveLetter:\directoryName" /UNLIMITED Where: yourComputerName is the name of the machine (in a command window type ipconfig /all and use entry for " Host Name") - e.g. desktop shareNameYouWant for example LaptopBackup driveLetter is the letter that your removeable drive mounts up as e.g. E directoryName is the name of the directory you wish to share e.g. LaptopBackup So putting that all together it looks like this RMTSHARE.EXE \\desktop\"LaptopBackup"="E:\LaptopBackup" /UNLIMITED Create a shortcut to that batch file in your startup folder. Sorted! |
|
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Nov 2007
Posts: 4
OS: XP
|
Re: shared folder gets unshared???
If you really want to get clever here's a batch file that will handle plugging in several different drives as your external drive and even give you a second chance to do so.
The batch file looks for each of the external drives, if it finds none it pauses, asks you to plug one in, and tries one more time. There are three points to edit, two sections for drive letters and one for the final command, all with a comment starting "edit this section" above them @echo off :: Mounts shared folders on external drives (since Windows XP won't preserve those across logins) :: RedYeti - 16 Nov 2007 :: unset in case it's been run already in this cmd shell set TARGET_EXT_HD_LETTER= :: *****> start section to set external drive letter (must be repeated later) <***** :: edit this section to add or remove external drive letters if exist E:\ set TARGET_EXT_HD_LETTER=E:\ if exist M:\ set TARGET_EXT_HD_LETTER=M:\ if exist N:\ set TARGET_EXT_HD_LETTER=N:\ :: *****> end section set external drive letter <***** if "%TARGET_EXT_HD_LETTER%"=="" echo. if "%TARGET_EXT_HD_LETTER%"=="" echo No external drive found - plug one in and one more attempt will be made if "%TARGET_EXT_HD_LETTER%"=="" echo. if "%TARGET_EXT_HD_LETTER%"=="" pause :: *****> start repeat of section to set external drive letter <***** :: edit this section to add or remove external drive letters if exist E:\ set TARGET_EXT_HD_LETTER=E:\ if exist M:\ set TARGET_EXT_HD_LETTER=M:\ if exist N:\ set TARGET_EXT_HD_LETTER=N:\ :: *****> end repeat of section to set external drive letter <***** if "%TARGET_EXT_HD_LETTER%"=="" echo. if "%TARGET_EXT_HD_LETTER%"=="" echo Still no external drive found - you need to run this again if "%TARGET_EXT_HD_LETTER%"=="" echo. if "%TARGET_EXT_HD_LETTER%"=="" pause if "%TARGET_EXT_HD_LETTER%"=="" exit :: edit this section! :: if we reached here, pull back the curtain and mount the share @echo on RMTSHARE.EXE \\yourComputerNameHere\"shareNameYouWantHere"="driveLetter:\directoryName" /UNLIMITED |
|
|
|
|
|
#5 (permalink) |
|
Registered User
|
Re: shared folder gets unshared???
Hi again
Back to shared folders, lol, i know its a long time, but, i don’t think i followed any of the 2 post given, but not 100% If i did follow the instructions given is there a way to check if i did or didn’t. My shared folders do stayed shared now and was wondering what i did so i can try to keep to the same method so i can get it in my head and remember. I also set something else up on my PC and was wondering if this kept my folders shared. I setup Internet Information Server "IIS web server" Thanks for your time again doj harris |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Nov 2007
Posts: 4
OS: XP
|
Re: shared folder gets unshared???
There aren't two suggestions above.
Look in your startup folder. If there's a shortcut to a batch file containing my workaround... As for IIS - I don't know much about it. It may have some feature that would allow this but to be honest I'd doubt it very much. I've been using the above batch file every day since I first posted it just under a year ago and it's worked flawlessly. |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Nov 2004
Posts: 6
OS: XP
|
Re: shared folder gets unshared???
How about under a 64 bit system with the same issues? Running Vista ultimate 64 here, and my music and movies are on external drives that keep getting unshared. rmtshare.exe says that it only works on 32 bit OS's.
Thanks |
|
|
|
|
|
#8 (permalink) |
|
Registered User
Join Date: Nov 2007
Posts: 4
OS: XP
|
Re: shared folder gets unshared???
I haven't got Vista or 64 bit OS (my new machine came with both - I had it dropped back to 32 bit XP - too much bother that way lay).
So all I can suggest is that Vista is probably capable of giving a 32 bit app a 32 bit shell to run inside (leaving the app blissfully unware it's really running in a 64 bit shell). Have a poke around on the net and post back here if you crack it! :) |
|
|
|
|
|
#9 (permalink) |
|
Registered User
Join Date: May 2009
Posts: 1
OS: WinXP Pro SP3 32-bit, Vista Ultimate SP1 64-bit
|
Re: shared folder gets unshared???
It's a long time for this thread, but I just came across it and thought maybe others might be interested in what I recently discovered.
I had similar problems with shares "disappearing" in WinXp Pro 32-bit for an external Firewire 800 drive. Sometimes they were there, and sometimes they weren't! They worked for months (> 1 year), then just stopped working one day, only to reappear another day. After much experimenting, here's what I've concluded. I believe this works for any USB or Firewire external drive but am not 100% sure. All bets are off for eSATA drives because it is a different interface that logically looks like an internal drive even though it is physically external. First, assign a fixed drive letter using the Disk Manager:
Now create any shares you want on the drive. Here is the observed behavior with a fixed drive letter. I don't think this behavior can be changed, but understanding it may allow you to accomplish your tasks.
It would be nice to be able to refresh the dynamic list after boot time. If anyone finds a way to do this, please post the procedure. Regards, Engineer1 Last edited by Engineer1; 05-28-2009 at 12:31 AM. |
|
|
|
![]() |
| Thread Tools | |
|
|