Jump to content

Recommended Posts

Posted

Hi

I am trying to copy ad-aware def file after install using a bat file in guirunonce

@echo off

title Copying defs.ref

copy /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.bat

Please tell me whats wrong

smartie91


Posted (edited)
copy /y %systemdrive%\install\defs.ref C:\Program Files\Lavasoft\Ad-Aware SE Personal\defs.ref

must be :

copy /y "%systemdrive%\install\defs.ref" "%ProgramFiles%\Lavasoft\Ad-Aware SE Personal\defs.ref"

Edited by sonic
Posted

Hi Sonic

thanks for the reply

I have changed my bat file

I have made a install folder on c:\ and inside is my bat file with

copy /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 thing

smartie91

Posted

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 ...

Posted

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 ^^

Posted

Sonic

I have sorted it

I have taken the space out from beween programfiles

xcopy /y /s "%systemdrive%\install\defs.ref" "%ProgramFiles%\Lavasoft\Ad-Aware SE Personal\"

thanks for your help and advice

Smartie91

Posted

Sonic

We have sorted it thanks

xcopy /y /s "%systemdrive%\install\defs.ref" "%ProgramFiles%\Lavasoft\Ad-Aware SE Personal\"

I have taken the space out of programfiles

thanks for your help

Smartie91

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...