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:
PrimaryContext command
CommandFile: c:\deploymentfiles\test.batCommandLine: cmd /c test.bat
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%
PrimaryContext command
CommandFile: c:\deploymentfiles\test.txtCommandLine: copy test.txt %SystemDrive%