Mittwoch, 6. Oktober 2010

Create/Quit Virtual Drives by Right Click

Hi folks,

for those of u who manage their projects by working with virtual drives (e.g. "X:\") here's a handy trick how u  can create a drive of the current folder simply by right click.



1. create two .bat-files with the following content (one will create a virtual drive, the other will remove it):

Create_X.bat

@echo off

subst x: /D
subst x: .

if errorlevel 1 (
echo X: couldn't be created!
pause
)


quit_X.bat

@echo off

subst x: /D

if errorlevel 1 (
echo X: could'n be quit. Did it exist? ,).
pause
)


2. create the following Registry Entries and choose the .bat-files as target (if necessary: further instructions creating context items for folders - german, but pictured)



Improvements or Questions are very welcome!
Thanks to Basti for inspiration!

Cheers!