How to detect the SHIFT key modifier when the script is accessed from a file'²s right-mouse-click menu "send to" ?
Posted on 2003-11-12
I have made a script "todir.vbs" and I placed it in my "Send To" folder. When I right-mouse-click the mouse on a file in Windows XP and then choose in the Send To submenu "todir.vbs" I can copy a file to a certain predefined directory. I did this through "fso.CopyFile Src, Destination, false" (or true).
Now, how can I detect or make it behave so that if I hold the SHIFT-key while right-mouse-clicking it doesn't copy , but move the file to the predefined directory. Just like SHIFT key behaves in other behaviors like drag&drop etc in Windows.
And how can I make the extension ".vbs" dissapear in the submenu ?