smartie91 Posted January 1, 2006 Share Posted January 1, 2006 HiI am trying to copy ad-aware def file after install using a bat file in guirunonce@echo offtitle Copying defs.refcopy /y %systemdrive%\install\defs.ref C:\Program Files\Lavasoft\Ad-Aware SE Personal\defs.ref[GuiRunOnce] "REGEDIT /S %systemdrive%\Install\tweaks.reg" %systemdrive%\Install\cleanup.batPlease tell me whats wrongsmartie91 Link to comment Share on other sites More sharing options...
Sonic Posted January 1, 2006 Share Posted January 1, 2006 (edited) copy /y %systemdrive%\install\defs.ref C:\Program Files\Lavasoft\Ad-Aware SE Personal\defs.refmust be :copy /y "%systemdrive%\install\defs.ref" "%ProgramFiles%\Lavasoft\Ad-Aware SE Personal\defs.ref" Edited January 1, 2006 by sonic Link to comment Share on other sites More sharing options...
smartie91 Posted January 1, 2006 Author Share Posted January 1, 2006 Hi Sonicthanks for the reply I have changed my bat fileI have made a install folder on c:\ and inside is my bat file withcopy /y "%systemdrive%\install\defs.ref" "%ProgramFiles%\Lavasoft\Ad-Aware SE Personal\defs.ref"but it still dont copy over the file defs.ref which is also in c:\install\ I thought this would test it to save having to build a new iso and installing just to test a small thingsmartie91 Link to comment Share on other sites More sharing options...
Sonic Posted January 1, 2006 Share Posted January 1, 2006 open a cmd windows, and launch the bath, what happens in windows ? what's error ? Link to comment Share on other sites More sharing options...
smartie91 Posted January 1, 2006 Author Share Posted January 1, 2006 Hi sonicthe error is "the system cannot find the path specified"0 files copiedsmartie91 Link to comment Share on other sites More sharing options...
Sonic Posted January 1, 2006 Share Posted January 1, 2006 and Ad-Aware is already installed ?? Link to comment Share on other sites More sharing options...
smartie91 Posted January 1, 2006 Author Share Posted January 1, 2006 Yes it is installedsmartie91 Link to comment Share on other sites More sharing options...
Sonic Posted January 1, 2006 Share Posted January 1, 2006 try with xcopy ...xcopy /y /s "%systemdrive%\install\defs.ref" "%ProgramFiles%\Lavasoft\Ad-Aware SE Personal\"copy doesn't need the name of destination file too ... Link to comment Share on other sites More sharing options...
smartie91 Posted January 1, 2006 Author Share Posted January 1, 2006 sonicit now says 1 file copiedbut has not copied to ad-aware dirSmartie91 Link to comment Share on other sites More sharing options...
Sonic Posted January 1, 2006 Share Posted January 1, 2006 Find it with Search function and look the path found. Link to comment Share on other sites More sharing options...
smartie91 Posted January 1, 2006 Author Share Posted January 1, 2006 sonicIt has made a dir on c:\lavasoft\ad-adware se personal with the def.ref file insidesmartie91 Link to comment Share on other sites More sharing options...
Sonic Posted January 1, 2006 Share Posted January 1, 2006 you don't work on Windows XP/2000 ?!replace %ProgramFiles% by C:\Program Files\ ... and don't forget quotes.Hope it's the last post ^^ Link to comment Share on other sites More sharing options...
smartie91 Posted January 1, 2006 Author Share Posted January 1, 2006 SonicI have sorted it I have taken the space out from beween programfilesxcopy /y /s "%systemdrive%\install\defs.ref" "%ProgramFiles%\Lavasoft\Ad-Aware SE Personal\"thanks for your help and adviceSmartie91 Link to comment Share on other sites More sharing options...
Sonic Posted January 1, 2006 Share Posted January 1, 2006 Link to comment Share on other sites More sharing options...
smartie91 Posted January 2, 2006 Author Share Posted January 2, 2006 SonicWe have sorted it thanksxcopy /y /s "%systemdrive%\install\defs.ref" "%ProgramFiles%\Lavasoft\Ad-Aware SE Personal\"I have taken the space out of programfiles thanks for your helpSmartie91 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