-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSwitchSlashes.reg
More file actions
30 lines (24 loc) · 1.92 KB
/
Copy pathSwitchSlashes.reg
File metadata and controls
30 lines (24 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Windows Registry Editor Version 5.00
; This will appear when you hold Shift and Right Click ON a folder:
[HKEY_CLASSES_ROOT\Directory\shell\SwitchSlashes.ForwardSlash]
@="Copy //"
; Comment out this "Extended" line if you do not want to hold Shift before Right Clicking.
"Extended"=""
[HKEY_CLASSES_ROOT\Directory\shell\SwitchSlashes.ForwardSlash\command]
@="c:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe \"-command\" \"\"$Path =\"\\\"%1\\\"\"; $ReplaceStr = '\\\\'; $OppositeStr = '/'; try{ if(!$Path){$Path = get-clipboard}; $NewPath = $Path -replace $ReplaceStr, $OppositeStr; set-clipboard($NewPath); } catch{};\""
; ************************************************************
; This will appear when you hold Shift and right click a file:
[HKEY_CLASSES_ROOT\*\shell\SwitchSlashes.ForwardSlash]
@="Copy //"
; Comment out this "Extended" line if you do not want to hold Shift before Right Clicking.
"Extended"=""
[HKEY_CLASSES_ROOT\*\shell\SwitchSlashes.ForwardSlash\command]
@="c:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe \"-command\" \"\"$Path =\"\\\"%1\\\"\"; $ReplaceStr = '\\\\'; $OppositeStr = '/'; try{ if(!$Path){$Path = get-clipboard}; $NewPath = $Path -replace $ReplaceStr, $OppositeStr; set-clipboard($NewPath); } catch{};\""
; ************************************************************
; This will appear when you hold Shift and Right Click INSIDE a folder:
[HKEY_CLASSES_ROOT\Directory\Background\shell\SwitchSlashes.ForwardSlash]
; Comment out this "Extended" line if you do not want to hold Shift before Right Clicking.
"Extended"=""
@="Copy //"
[HKEY_CLASSES_ROOT\Directory\Background\shell\SwitchSlashes.ForwardSlash\command]
@="c:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe \"-command\" \"\"$Path =\"\\\"%v\\\"\"; $ReplaceStr = '\\\\'; $OppositeStr = '/'; try{ if(!$Path){$Path = get-clipboard}; $NewPath = $Path -replace $ReplaceStr, $OppositeStr; set-clipboard($NewPath); } catch{};\""