Pass parameter to created exe?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
benwi
Newbie
Posts: 2
Joined: Thu Nov 17, 2005 4:35 am
Location: Australia

Pass parameter to created exe?

Post by benwi » Thu Nov 17, 2005 4:45 am

Hi,
I have written a script and want to compile it as an exe. When i run the exe from the command line, i want to pass it a filename to be used in the script. How do i go about doing this?!

An example of what i am imagining for the command line call is:
c:\DownloadFile.exe Datafile.xls

where DownloadFile.exe is the exe i have created and datafile.xls is the file i want to download.

Any tips more than welcome!
Thanks,
ben

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Thu Nov 17, 2005 5:10 am


benwi
Newbie
Posts: 2
Joined: Thu Nov 17, 2005 4:35 am
Location: Australia

Post by benwi » Thu Nov 17, 2005 6:03 am

Thanks heaps!!! :D

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts