hani-dev

open appdata dir from cmd and run my exe over there from cmd not working!!

4 posts in this topic

#1 ·  Posted

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

 

Share this post


Link to post
Share on other sites



#3 ·  Posted

Why do you need cmd?  Why not just use:

RunWait(@AppDataDir & '\my.exe "' & @AppDataDir & '\my.au3"')

 

Share this post


Link to post
Share on other sites

#4 ·  Posted

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 !!

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