Jump to content
Sign in to follow this  
sumone4life

hotScript question

Recommended Posts

sumone4life

Is there a way to create a sort of hotScript where i can drap and drop x number of files onto the exe and it will run a set of commands on that list of files?

Share this post


Link to post
Share on other sites
jvanegmond

If you drop files on an executable they are readable from the $CmdLine variable. For more information search the AutoIt help file for command line.

Share this post


Link to post
Share on other sites
PsaltyDS

Is there a way to create a sort of hotScript where i can drap and drop x number of files onto the exe and it will run a set of commands on that list of files?

Like Manadar said, but with a demo:
#include <Array.au3>

_ArrayDisplay($CmdLine, "$CmdLine")

MsgBox(64, "$CmdLineRaw", $CmdLineRaw)

Compile that to an .exe, then drag-n-drop file(s) on it in explorer.

Not much to it, huh?

:P

P.S. Manadar would have included his own great demo, but he's having issues with his hosting service right now. Evidently their tubes are clogged!

:unsure:

Edit: Added Manadar's fancy demo of $CmdLineRaw.

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
jvanegmond

Yes, tubes clogged. Can't do much about it. Someone was transfering pictures of an elephant. You can't fit an elephant through tiny wires like that. :P

I have a little example too :unsure:

MsgBox(0, "", $CmdLineRaw)

Share this post


Link to post
Share on other sites
sumone4life

Thanks a lot thats perfect.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×