Guest Snake_Plissken Posted November 14, 2004 Share Posted November 14, 2004 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted November 14, 2004 Developers Share Posted November 14, 2004 (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 November 14, 2004 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. Link to comment Share on other sites More sharing options...
Guest Snake_Plissken Posted November 14, 2004 Share Posted November 14, 2004 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! 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