2009年8月18日星期二

Substituting Folder As Drive

ActiveWindows -- Substituting Folder As Drive

If you want to have a special attention to a folder you keep working on, why not substitute it as a drive? Weird question? No really. There is a small utility hidden in your Windows\Command directory that call subst.exe which is brought over from old DOS. The syntax is simple.

To "rename" a folder into a drive, type in:

<span style="background-color: rgb(255, 255, 208);">subst w: c:\data\work\records\</span>

Now drive w will be officially your drive for working. Cool isn't it? To remove it, type:

<span style="background-color: rgb(255, 255, 208);">subst w: /d</span>

And there goes drive w. You can run subst.exe from DOS Prompt or Autoexec.bat. OK, other than giving you a shorter and manageable path, Windows will actually produce an independent recycle bin for it! Awesome if you want a separate workout from your normal drives.




沒有留言: