Search code examples
filebatch-filecopymove

Batch File Copying


I am trying to copy a file from the C:\ drive to the steam directory using this

copy "C:\CSS.zip" "C:\%ProgramFiles86%\Steam\CSS.zip"

but it always makes a new folder and places the file in a new folder called %ProgramFiles86% but i want it to go in the actual Program Files (x86)

Thanks for the help


Solution

  • You aren't using the program files path correctly. Your code should be this:

    copy C:\CSS.zip "%programfiles(x86)%\CSS.zip"