Jump to content

Help with run command


Recommended Posts

Guest Snake_Plissken
Posted

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

  • Developers
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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Guest Snake_Plissken
Posted

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!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...