hani-dev Posted May 17, 2017 Share Posted May 17, 2017 hello there im try to write code that's open my appdata dir from cmd and then execute my .au3 via AutoIt3.exe in the same command statrup() Func statrup() $CMD = "cd " & @AppDataDir & "AutoIt3.exe myscript.au3" RunWait(@ComSpec & " /k " & $CMD ) EndFunc it's now working .... any help please Link to comment Share on other sites More sharing options...
hani-dev Posted May 18, 2017 Author Share Posted May 18, 2017 solved $CMD = " start " & @AppDataDir & "\my.exe " & @AppDataDir & "\my.au3" RunWait(@ComSpec & " /c " & $CMD) Link to comment Share on other sites More sharing options...
Subz Posted May 18, 2017 Share Posted May 18, 2017 Why do you need cmd? Why not just use: RunWait(@AppDataDir & '\my.exe "' & @AppDataDir & '\my.au3"') Link to comment Share on other sites More sharing options...
hani-dev Posted May 24, 2017 Author Share Posted May 24, 2017 On 5/18/2017 at 3:31 AM, Subz said: Why do you need cmd? Why not just use: RunWait(@AppDataDir & '\my.exe "' & @AppDataDir & '\my.au3"') thanx u dear u method is better than mine but i need it from cmd becuze runwait is detected via AV !! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now