Skip to content

Instantly share code, notes, and snippets.

@ddieppa
Last active March 21, 2016 18:20
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 ddieppa/b5d3661e8896dffa3d47 to your computer and use it in GitHub Desktop.
Save ddieppa/b5d3661e8896dffa3d47 to your computer and use it in GitHub Desktop.
Put all single files in to folders with the same name
set PATH=%PATH%;C:\Program Files\7-Zip\
echo %PATH%
Windows Registry Editor Version 5.00
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\sublime]
@="Open Folder as &Sublime Project"
"Icon"="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command]
@="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\" \"%1\""
; This will make it appear when you right click INSIDE a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime]
@="Open Folder as &Sublime Project"
"Icon"="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime\command]
@="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\" \"%V\""
@echo off
for %%a in (*.*) do (
md "%%~na" 2>nul
move "%%a" "%%~na"
)
@echo off
net use \\PCOnTheNetwork /user:username password
net use m: /delete
net use m: \\PCOnTheNetwork\FolderToBeMapped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment