Jump to content

confused about copy


Recommended Posts

i see alot of ppl using copy in there batch commands but they have it like

copy %systemdrive%\......\.....\somefile.ext %systemdrive%\......\.....\somefile.ext

so i was wondering doesn %systemdrive% refer to the CD during the installin process? so wouldnt that try to copy the file to the CD instead of teh HD?

Link to comment
Share on other sites


ok then wen ur settin up ur xp instll cd the batch file has commands like

ECHO.
ECHO Installing WinRAR 3.41
ECHO Please wait...
start /wait %systemdrive%\install\Applications\WinRAR\wrar341.exe /s

isnt that running the file from the cd?

Link to comment
Share on other sites

also, unless you are needing to change the filename or extension of the file you are copying you do not need to reference it twice:

::to keep copied filename the same
COPY "%systemdrive%\install\a folder\filename.ext" %systemroot%\System32\
::or to rename the copied file
COPY "%systemdrive%\install\a folder\filename.ext" %systemroot%\System32\newname.ext

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