Is there any way to add a new entry to windows explorer context menu that could run a BAT file/command with the selected file as argument.
Specifically, I need to do:
pscp -pw password E:\File.txt myname@machine.univ.edu:/home/myname/Files/
on right clicking the file and selecting the menu item “Copy to server” in windows explorer.
You need shell extension. CHeck out this for complete guide: http://www.codeproject.com/KB/shell/shellextguideindex.aspx
And dont forget “Do not write in-process shell extensions in managed code“. Details here:
https://devblogs.microsoft.com/oldnewthing/20061218-01/?p=28693