Jump to content
Sign in to follow this  


Recommended Posts


Hi All,

sorry that this may seems like a stupid question. I could not find the ans from the forum and help file.

If I would like to run a file from command prompt:

myautoitscript.exe "hello world"

inside the script is


How do I do this.

Share this post

Link to post
Share on other sites

This should set you in the right direction:

If $CmdLine[0] <> 0 Then
MsgBox(0, "My MsgBox", $CmdLine[1])
MsgBox(0, "My MsgBox", "No parameter was entered")

I wrote a batch file with this in it (myscript.exe is the compiled code above):

myscript.exe "hello world"
Edited by abberration

RAID Calculator | Software Installer

The truth has been suppressed since the dawn of time.

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