How do I change this context menu command to open a single explorer window even if multiple files have been selected?
The code below effectively moves the files selected to a custom folder in Dropbox. However, if multiple files are selected then multiple explorer windows are opened.
I know it can be improved upon, for example, to have better handling of multiple files and to work without using cmd
so there isn't a flash of a command prompt when executed - amendments are welcome.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Move to Dropbox Folder\command]
@="cmd /k \"MOVE \"%1\" \"%%USERPROFILE%%\\Dropbox\\Music\\New Music\" & explorer \"%%USERPROFILE%%\\Dropbox\\Music\\New Music\"\" & exit"
[HKEY_CLASSES_ROOT\*\shell\Move to Dropbox Folder]
"Icon"="C:\\Program Files (x86)\\Dropbox\\Client\\Dropbox.exe"