GoogleDude 1 Posted September 28, 2010 I have a script that has a few different func() in it. the func() have $vars that are used but the vars will be set at runtime when the compiled script is run. an example is C:\mycompiledscript.exe /staticswich:dynamicvalue /staticswich:dynamicvalue the dynamicvalue word would be replaced with what every I want the vars to be set as so they can be used inside the script. If that makes sense. my code sample Im using to try yo debug it is below. If $CMDLINE[0] And $CMDLINE[1] = '/filename:' And $CMDLINE[2] = '/emailaddress:' Then ; msg command line switches passed for debugging MsgBox(48,"",$CMDLINE[1]&" "&" "&$CMDLINE[2]) ; call what ever function EndIf Exit ~GD Share this post Link to post Share on other sites
Jos 2,209 Posted September 28, 2010 Does this help ? http://www.autoitscript.com/forum/index.php?showtopic=59773&view=findpost&p=452254 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites