Sign in to follow this  
Followers 0
Guest Snake_Plissken

Help with run command

3 posts in this topic

I am attempting to create a script that will run ad-aware on my pc and do a scan in the middle of the night and delete any spyware it finds. I know how to do everything else except run the program.

Here is my run command:

Run("Ad-Aware.exe","C:\Program Files\Lavasoft\Ad-Aware SE Personal")

I keep getting a cannot find file error. But this IS the location of my adaware exe, and the spelling is all correct. Im not sure why this wont work, yet when i tell it to do the same thing with notepad:

Run("Notepad.exe","C:\WINNT\System32")

It wil work in this instance. Im a little confused why run would work with notepad and not any other program, and would appreciate any help those of you could give me

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

you have to include the full path for the first parameter when the program isn't located in the %Path:

Run("C:\Program Files\Lavasoft\Ad-Aware SE Personal\Ad-Aware.exe")

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

you have to include the full path for the first parameter when the program isn't located in the %Path:

Run("C:\Program Files\Lavasoft\Ad-Aware SE Personal\Ad-Aware.exe")

<{POST_SNAPBACK}>

MUCH MUCH MUCH appriciation man. This worked perfectly. Im off to make my adaware scanning script now !

Thanks!

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
Sign in to follow this  
Followers 0