Jump to content

Recommended Posts

Posted

I'm trying to make an easy way to add the latest reference file to Ad-Aware 6, and figured just copying the .ref file would work. I added the following lines to my cleanup.cmd...

DEL "C:\Program Files\Lavasoft\Ad-aware 6\reflist.ref"
Copy "C:\Install\Applications\AdAware\reflist.ref C:\Program Files\Lavasoft\Ad-aware 6\"

The original file deletes, but for some reason, the new reflist.ref file wont copy over. Do I have the wrong syntex or something (been a long time since I messed with DOS commands).

Any help would be appreciated.


Posted

Your syntax is wrong,

try this

Copy "C:\Install\Applications\AdAware\reflist.ref" "C:\Program Files\Lavasoft\Ad-aware 6"

or

Copy C:\Install\Applications\AdAware\reflist.ref "C:\Program Files\Lavasoft\Ad-aware 6"

R

Posted

You can miss out the delete if you add the yes for overwriting the original one. Also it would be possible to add enviromnent variables, to prevent tying the code to a specific drive letter.

COPY/Y "%systemdrive%\Install\Applications\AdAware\reflist.ref" "%ProgramFiles%\Lavasoft\Ad-aware 6\"

Hope this helps!

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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