Hadron, Out of interest, could you post the contents of your BuidScript.cmd. The one that failed with the incomplete copying. I have an idea about using Robocopy instead of "Copy".
Brian, you probably know that my BuildScript.cmd has changed a number of times over the last few days, but the last one I last used before manually copying is attached. They are the right path locations for the locations they were last in. As you know, I also tried your specific paths and folder names and BuildScript.cmd. I suspect that they all failed the same way.
In future, I'll know if it succeeds or fails if I use another script using the pause option. I know what to look for now. Save all the rebooting.
Understood. When you get a chance, can you try this to see if it copies the files? Code: @echo off setlocal enableextensions enabledelayedexpansion :: This script will be run during the build process to handle custom :: build operations. :: ---------------------------------------------------------------------------- :: Add script commands after this line md "%TBWinPE_MountPath%\C:\Program Files\Explorer++" 2> nul robocopy "C:\TBWinRE_Files\CustomProg\Explorer++" *.* /mir "%TBWinPE_MountPath%\Program Files\Explorer++" md "%TBWinPE_MountPath%\C:\Program Files\Snapshot" 2> nul robocopy "C:\TBWinRE_Files\CustomProg\Snapshot" *.* /mir "%TBWinPE_MountPath%\Program Files\Snapshot" echo BuildScript running... pause
I just noticed an error in your script. C: is not needed. Twice. Try this Code: @echo off setlocal enableextensions enabledelayedexpansion :: This script will be run during the build process to handle custom :: build operations. :: ---------------------------------------------------------------------------- :: Add script commands after this line md "%TBWinPE_MountPath%\Program Files\Explorer++" 2> nul robocopy "C:\TBWinRE_Files\CustomProg\Explorer++" *.* /mir "%TBWinPE_MountPath%\Program Files\Explorer++" md "%TBWinPE_MountPath%\Program Files\Snapshot" 2> nul robocopy "C:\TBWinRE_Files\CustomProg\Snapshot" *.* /mir "%TBWinPE_MountPath%\Program Files\Snapshot" echo BuildScript running... pause
It worked. The command prompt window displayed all the files and folders being copied, including the TeraByte Drive Image Backup and Restore Suite and Common Files folders, and I had to press any key to proceed. Ideally, the command prompt windows could probably close on its own. Then it paused again because I had the TPWinPE/RE Builder setting ticked. Well done.
I used the previous script you posted and it worked. See my previous post. It seemed a bit slower to complete though. I'll try the new one you posted.
I haven't rebooted yet. I am just judging success or failure by looking in the mount folder when TPWinPE/RE Builder pauses. The command prompt windows did supply some handy info. Success and failures.
I'll run one now without any pauses. Edit: The script windows popped up briefly displaying all the files and folders copying.
I just rebooted. All good. And as quick as a UFD. I like it Just a question.Why does this new script display all files and folders being copied and not just my custom programs?
Robocopy *.* and /mir will copy everything in the source folder. All files and folders. OK. "echo BuildScript running..." makes it do that.
I think this is a great setup. I can easily restore with IFW or Drive Snapshot from the one reboot. Both of which have never failed me.
Looks fine to me. Code: ------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows ------------------------------------------------------------------------------- Started : Saturday, 26 October 2019 17:39:27 Source : D:\TBWinRE_files\FileManagers\DS\ Dest : D:\TBWinRE_files\333pe - Copy\mount\Program Files\DS\ Files : *.* Options : *.* /S /E /DCOPY:DA /COPY:DAT /PURGE /MIR /R:1000000 /W:30 ------------------------------------------------------------------------------ 2 D:\TBWinRE_files\FileManagers\DS\ 100% New File 54 lic-snapshot.txt 100% New File 455128 snapshot64.exe ------------------------------------------------------------------------------ Total Copied Skipped Mismatch FAILED Extras Dirs : 1 0 1 0 0 0 Files : 2 2 0 0 0 0 Bytes : 444.5 k 444.5 k 0 0 0 0 Times : 0:00:00 0:00:00 0:00:00 0:00:00 Ended : Saturday, 26 October 2019 17:39:27 ------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows ------------------------------------------------------------------------------- Started : Saturday, 26 October 2019 17:39:27 Source : D:\TBWinRE_files\FileManagers\explorer++_1.3.5_x64\ Dest : D:\TBWinRE_files\333pe - Copy\mount\Program Files\explorer++_1.3.5_x64\ Files : *.* Options : *.* /S /E /DCOPY:DA /COPY:DAT /PURGE /MIR /R:1000000 /W:30 ------------------------------------------------------------------------------ 5 D:\TBWinRE_files\FileManagers\explorer++_1.3.5_x64\ 100% New File 17143 config.xml 100% New File 1.7 m Explorer++.exe 100% New File 46675 History.txt 100% New File 33091 License.txt 100% New File 722 Readme.txt ------------------------------------------------------------------------------ Total Copied Skipped Mismatch FAILED Extras Dirs : 1 0 1 0 0 0 Files : 5 5 0 0 0 0 Bytes : 1.87 m 1.87 m 0 0 0 0 Times : 0:00:00 0:00:00 0:00:00 0:00:00 Speed : 31650564 Bytes/sec. Speed : 1811.059 MegaBytes/min. Ended : Saturday, 26 October 2019 17:39:27 BuildScript running... Press any key to continue . . .
OK. You're right. I just run it again with pause. All the files that were flashing past me were Drive Snapshot help files. I didn't realize that there were so many.
I'm glad you like it. If you are interested in an IFL bootfile it has just been updated by TeraByte. I do almost all my restores with IFL as it's faster than IFW. I think I previously mentioned a 2 to 3 second metadata restore of a fresh Win10 partition.