Support Forum

Full Version: Copy a file during a Software Installation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I am tring to do a copy of a file during installation
This is what i have in the installation for Sophos

"%CDROM%\Software\Sophos\SAU\Sophos AutoUpdate.msi" /quiet"
"%CDROM%\Software\Sophos\savxp\sophos anti-virus.msi" /quiet"
cmd \c COPY "%CDROM%\Software\Sophos\TopLevelCatalogue.dat" "%Programfiles%\Sophos\AutoUpdate\Config" /y"

The install goes OK but can't find any way of copying the file
Have tried putting this into a batch file as well
COPY "%CDROM%\Software\Sophos\TopLevelCatalogue.dat" "%Programfiles%\Sophos\AutoUpdate\Config"

Nothing will work
How do i copy a file from CD on anything on the new build?

Many thanks

Anthony
Hi,

1. I think cmd \c COPY is wrong, cmd /c COPY is better Wink

2. I think /y" is wrong too, without a quota is better.

Is "%Programfiles%\Sophos\AutoUpdate\Config" a file or directory?

Try follow:
Code:
cmd /c COPY /Y "%CDROM%\Software\Sophos\TopLevelCatalogue.dat" "%Programfiles%\Sophos\AutoUpdate\Config\TopLevelCatalogue.dat"
or
Code:
cmd /c COPY /Y "%CDROM%\Software\Sophos\TopLevelCatalogue.dat" "%Programfiles%\Sophos\AutoUpdate\Config\*.*"
Vitali Wrote:Hi,

1. I think cmd \c COPY is wrong, cmd /c COPY is better Wink

2. I think /y" is wrong too, without a quota is better.

Is "%Programfiles%\Sophos\AutoUpdate\Config" a file or directory?

Try follow:
Code:
cmd /c COPY /Y "%CDROM%\Software\Sophos\TopLevelCatalogue.dat" "%Programfiles%\Sophos\AutoUpdate\Config\TopLevelCatalogue.dat"
or
Code:
cmd /c COPY /Y "%CDROM%\Software\Sophos\TopLevelCatalogue.dat" "%Programfiles%\Sophos\AutoUpdate\Config\*.*"

Where in the interface can you specify such a command to be executed at installation completion? Does it need to be a .bat file that included as another instance of software?
JosephRB Wrote:Where in the interface can you specify such a command to be executed at installation completion? Does it need to be a .bat file that included as another instance of software?
Sorry my english, but I don't understand you. Do you have an example for me?