Script to use selected filename as command-line argument

Discuss and share scripts and script files...
Post Reply
BJosephs
Posts: 6
Joined: 07 Sep 2012 00:41

Script to use selected filename as command-line argument

Post by BJosephs »

Hi. I'm a <gasp> noob looking for some simple scripting help. It seems that XYplorer doesn't have the functionality of Windows Explorer as far as drag-n-drop execution of script files (.vbs,.bat) using dropped file as a command line argument. I imagine this could be done with a simple script (or at least with a POM), but I'm just learning the ropes of XYplorer scripting. Any guidance will be appreciated.

BJosephs
Posts: 6
Joined: 07 Sep 2012 00:41

Re: Script to use selected filename as command-line argument

Post by BJosephs »

I figured out the POM:
|"Send email" *>::run """C:\scripts\GroupSendMail.vbs"" ""<curitem>""";
Now I can assign a hot-key. I would like to learn if/how to accomplish the same thing with drag-n-drop through a script.

admin
Site Admin
Posts: 66300
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Script to use selected filename as command-line argument

Post by admin »

Hi and welcome!
BJosephs wrote:It seems that XYplorer doesn't have the functionality of Windows Explorer as far as drag-n-drop execution of script files (.vbs,.bat) using dropped file as a command line argument.
Whoops, thanks for noting. Next version will have it.

Don

BJosephs
Posts: 6
Joined: 07 Sep 2012 00:41

Re: Script to use selected filename as command-line argument

Post by BJosephs »

Thanks Don-
I see how much you put into this program - I'm excited to get to know it!

Post Reply