Skip to content

Instantly share code, notes, and snippets.

@Temikus
Created January 6, 2013 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Temikus/4468278 to your computer and use it in GitHub Desktop.
Save Temikus/4468278 to your computer and use it in GitHub Desktop.
A set of bat files for testing drive/folder association. 1) Add a virtual drive with letter T. 2) Clean up the association record. 3) Delete the virtual drive.
@echo Creating a test empty folder...
mkdir C:\TempDriveT
subst T: C:\TempDriveT
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"My Pictures"=-
@echo Creating a test empty folder...
subst T: /d
rmdir C:\TempDriveT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment