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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Hardware Support > Removable Media Drives
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Removable Media Drives Support Forum for removable media; Quantum, Iomega, Sony, HP

Reply
 
LinkBack Thread Tools
Old 03-20-2007, 06:54 PM   #1 (permalink)
Registered User
 
dojharris's Avatar
 
Join Date: Jul 2006
Location: uk
Posts: 282
OS: xp pro

My System

Send a message via MSN to dojharris
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
dojharris is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 03-21-2007, 09:32 AM   #2 (permalink)
smz
Hardware Tech Specialist
 
smz's Avatar
 
Join Date: Mar 2007
Location: Los Angeles
Posts: 705
OS: Mac OS X / W2K3 Server / XP Home/MCE/Pro / Vista Ultimate / Ubuntu Linux

My System

Send a message via ICQ to smz Send a message via AIM to smz Send a message via MSN to smz Send a message via Yahoo to smz Send a message via Skype™ to smz
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.
smz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 11-16-2007, 06:46 AM   #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!
RedYeti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 11-16-2007, 06:48 AM   #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
RedYeti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-27-2008, 08:26 PM   #5 (permalink)
Registered User
 
dojharris's Avatar
 
Join Date: Jul 2006
Location: uk
Posts: 282
OS: xp pro

My System

Send a message via MSN to dojharris
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
dojharris is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-28-2008, 01:07 AM   #6 (permalink)
Registered User
 
Join Date: Nov 2007
Posts: 4
OS: XP


Re: shared folder gets unshared???

There aren't two suggestions above.
  • smz said it can't be done.
  • I showed how it can be done (via a workaround).
  • I then posted a batch file that wraps up that workaround into something a bit smarter.

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.
RedYeti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-24-2008, 10:09 AM   #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
Hertz2P is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-25-2008, 10:26 AM   #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! :)
RedYeti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-28-2009, 12:05 AM   #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:
  • Make sure your external disk is powered up and recognized by WinXP with a drive letter.
  • Start->My Computer->Manage->Computer Management->Storage->Disk Management
  • Right-click the correct drive partition in the lower right corner of the window to get the "Change Drive letter and Paths..." menu.
  • Select a fixed drive letter and exit the menu.
Now your external drive will always show up with the same drive letter when attached.

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.
  1. WinXP appears to save a "static" list of shares for all drives.
    External drive shares are added to this list whenever they are manually created (or deleted).

  2. At boot time, WinXP appears to create a boot-instance-specific "dynamic" list of shares.
    It does this by checking all drives it sees at boot time against the static list.
    If it finds drives with shares in the static list, it adds the shares to the dynamic share list.

  3. If an external drive is not attached at boot time, it's shares will not be added to the dynamic list.

  4. Once the dynamic list is created, WinXP then creates all the shares in the list.

  5. The dynamic list is the same list shown in:
    Start->My Computer->Manage->Computer Management->System Tools->Shared Folders->Shares
  6. If an external drive is later removed, its shares remain in the dynamic list.
    This list is dynamic in the sense that it may be different on every reboot but remains fixed until the next reboot.

  7. If an external drive is later connected, only its shares on the dynamic list are created.
    Any shares on the static list are ignored and not created.

  8. The static list appears only to be used at boot time to create the dynamic list.
    I am not aware of any way to "refresh" the dynamic list after boot time.

  9. Logging on or off does not re-create, update, or otherwise affect the dynamic list.
    Only booting seems to do that.

  10. I haven't experimentally thoroughly with this, but manual changes to external drive shares appear to update both the static and dynamic lists. For a drive not present at boot time, the static list's share info will still be overwritten by creating a new share manually. This will thus be effective on future reboots.
Here are some consequences of this behavior:
  • If attached at boot time, the drive can later be disconnected any number of times and all its shares will be remembered (recreated) every time it is reconnected.
  • If not connected at boot time, none of the drive's shares will ever be remembered (recreated), regardless of how many times the drive is disconnected and reconnected thereafter until the next reboot.
  • If not connected at boot time, the drive's "forgotten" shares may be restored simply by rebooting with the external drive attached at boot time.
If you can conform to these rules, your shares will always be recreated automatically.

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.
Engineer1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 05:22 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85