Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Command line argument

$
0
0
Hello

Can any one tell me what is worng on this script



If $CmdLine[0]=1 Then
    RunWait("psexec.exe -s \\ ' & $CmdLine[1] &' & cmd")
; Do what you specified , e.g. sleep 99 sec
Else
    MsgBox (0, 'Test', 'Cmdline was not used.')
; Do your default stuff, e.g. sleep 1 sec
EndIf

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>