Jump to content
hani-dev

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

Recommended Posts

hani-dev

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
hani-dev
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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.