Adding a context menu to Windows Explorer to run BAT files

Is there a way to add a new entry to the context menu of Windows Explorer, which can run the BAT file / command with the selected file as an argument.

In particular, I need to do:

pscp -pw password E:\File.txt myname@machine.univ.edu:/home/myname/Files/

by right-clicking the file and selecting the menu item "Copy to server" in Windows Explorer.

+3
source share
2 answers

():

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\pscp]
@="Copy To Server"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\pscp\command]
@="%SystemRoot%\\system32\\cmd.exe /c \"P:\\ath\\to\\batch.cmd" \"%1\" %*"

P:\ath\to\batch.cmd ():

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\pscp\command]
@="W:\\here\\it\\is\\pscp.exe -pw password \"%1\" myname@machine.univ.edu:/home/myname/Files/"
0

All Articles