Jump to content

Virtual drives


Recommended Posts

I have several virtual drives which point to various folders on my system (the reason being that I can quickly switch development versions for Visual Studio). I run a script that contains several SUBST commands to define or remove these virtual drives.

But ever since I had that Recycl Bin problem the other day (http://www.windowsforum.org/forum/index.php?showtopic=16718), the "corrupt recycle bin" keeps coming back for these virtual drives. I usually remove the virtual drives, then run the script that nellie2 pointed out at the time, then reboot.

This usually "fixes" the problem for a few hours, and then suddenly it comes back, probably after I deleted something from a virtual drive.

Question: is there any other way to define virtual drives than the SUBST command?

Link to comment
Share on other sites

  • 2 weeks later...

Hi pwilliner, I see this subject has gone unanswered for a while. So just as a thought, could you try using the "net use" command instead of subst. Obviously you will need to allow sharing on the directories you want to have as virtual drives.

I think you probably already know what the context for the command is, but for other peoples benefit it is as follows at a command prompt,

net use x: \\computer name\share name

where x is the drive letter you wish to use, computer name is the network name of your computer and share name is the name of the folder you have shared ready to use as a virtual drive. Note the spaces after net, use and x:

You can also use the persistant switch at the end to see if this helps ( /persistant:yes or no ).

Mr. IM

Link to comment
Share on other sites

That works nicely - thanks again! The recycle bin problems do not occur with net use.

One more question: how do I remove a net use drive? subst /d ?

Answer (from http://www.microsoft.com/resources/documen...us/net_use.mspx):

net use with the /delete option.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy