Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 8915

Unable to copy files to system drive during Provisioning Package deployment

$
0
0

I've tried a couple different methods of copying some files from the Provisioning Package to the system drive. In the batch files attempts, it did create the log file as expected, meaning I know it has access to the %SystemDrive%. What am I doing wrong? Or is there some other way to copy files?

Methods I tried:

  1. PrimaryContext command

    CommandFile: c:\deploymentfiles\test.batCommandLine: cmd /c test.bat
  2. DeviceContext command

    CommandFile: c:\deploymentfiles\test.batCommandLine: cmd /c test.bat

    test.bat

    @echo offset LOGFILE=%SystemDrive%\logs\provisiontest.logmkdir c:\logs >NUL 2>&1copy test.txt %SystemDrive% >NUL 2>&1echo Copy result: %ERRORLEVEL% >> %LOGFILE%
  3. PrimaryContext command

    CommandFile: c:\deploymentfiles\test.txtCommandLine: copy test.txt %SystemDrive%

Viewing all articles
Browse latest Browse all 8915

Trending Articles