Changes

Jump to: navigation, search

Using Robocopy in WPKG

1,076 bytes added, 19:06, 6 August 2011
Major change, clarified why RoboCopy doesn't work because it outputs too much text
If you use WPKG with robocopy, RoboCopy allows you have to set the /log: variable copy files in Robocopy, otherwise restartable mode. If the Copyprocess copying process or network connection dies it will fail (at least in Windows 7 Professionell 64 Bit German, haven´t testet start where it with 32 bit)left off instead of starting over and copying the entire file.
i tried to copy WPKG has a whole folder with bug that stalls wpkg.js if the following install command:<install cmd='robocopyoutputs too much text.exe %SOFTWARE%\pdfsam\ "%PROGRAMFILES%\PDFSAM" /mir RoboCopy tends to output a lot of text even when copying small files and RoboCopy doesn' /> t have a silent flag so you have to use 5 different flags to disable all of the output.
As a result, only a few files were copied, and the script hangs till timeoutAn example install command looks like this:<source lang="xml"><install cmd='%COMSPEC% /c robocopy /Z /NP /NDL /NFL /NJH /NJS "%Software%\7-Zip" "%Temp%\7-Zip" "7z%FileVersion%.msi"' ><exit code="any" /></install></source>
I found out, that with or this if you want to copy the /logentire folder: parameter, <source lang="xml"><install cmd='%COMSPEC% /c robocopy works as intended/Z /S /NP /NDL /NFL /NJH /NJS "%Software%\7-Zip" "%Temp%\7-Zip"' ><exit code="any" /></install></source>
<install cmd='Usefull flags while copying: (more available here http://ss64.com/nt/robocopy.exe %SOFTWARE%\pdfsam\ html)<source lang="%PROGRAMFILES%\PDFSAMxml" >/mir Z : Copy files in restartable mode (survive network glitch)./logS :%temp%\robocopyCopy Subfolders.log' /E : Copy Subfolders, including Empty Subfolders./PURGE : Delete dest files/folders that no longer exist in source./MIR : MIRror a directory tree - equivalent to /PURGE plus all subfolders (/E)</source>
for Disable output:<source lang="xml">/NP : No Progress - don't display %temp% you can use any other path you likecopied./NDL : No Directory List - don't log directory names./NFL : No File List - don't log file names./NJH : No Job Header./NJS : No Job Summary.</source> Alternative way to disable output:<source lang="xml">/LOG:filename : Output status to LOG file (overwrite existing log).</source>This outputs the text to the log file instead of STDOUT which avoids the bug in WPKG.
35
edits

Navigation menu