Jump to content

Copying a file using my cleanup.cmd, need help.


Recommended Posts

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.

Link to comment
Share on other sites


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!

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

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