MVP TI Buider v182 and Acronis TrueImage 2019
------------------
[Adding True Image.]
------------------
'BatchSubstitute.bat' is not recognized as an internal or external command,
operable program or batch file.
'BatchSubstitute.bat' is not recognized as an internal or external command,
operable program or batch file.
I get this when trying to build a bootable flash drive with MVP TI Builder v18.2. I have Acronis TrueImage 2019 installed. Won't boot into GUI.
Luckily, I still have another flash drive made with MVP Builder v18.2 when I had Acrois TrueImage 2018 installed.
Is there a new version of MVPTI Builder being updated or TrueImage 2019 or is there a way this error can be fixed.


- Anmelden, um Kommentare verfassen zu können

Got it to work. it was either a reboot was needed at some point or simple running the MVPTI builder exe since I was already an administrator.
- Anmelden, um Kommentare verfassen zu können

Good to hear! Thanks for the update.
- Anmelden, um Kommentare verfassen zu können

BatchSubstitute.bat appears to be a free utility (with no obvious author) used to edit files in batch mode. It's possible the MVP Custom Builder includes and uses the tool, and that the tool became corrupted somehow. I don't know how that corruption could happen (without the Builder also being corrupted and unusable) but Murphy says it's bound to happen.
If the Builder does not use BatchSubstitute.bat then this is an even stranger event.
- Anmelden, um Kommentare verfassen zu können

I was trying to create a bootable USB drive using MVP_atipebuilder 18.6. along with Acronis True Image 2020. The build of a non ADK option works fine. With the ADK option the operation progresses to the point just after a box saying "System scan and preparation in progress. Please be patient." After that a whole lots of lines of code scroll on the screen. At least some of the lines say "'Batchsubstitute.bat is not recognized as an internal or external command, I'm attaching a screen shot I got at that time. I would have attached a Log file but one was not created, although it was created for the non ADK build.
Anhang | Größe |
---|---|
535399-181899.jpg | 236.81 KB |
- Anmelden, um Kommentare verfassen zu können

Are you running the MVP Custom tool as Administrator (regardless of using an Administrator level account)?
Where have you extracted the MVP folder to? This ideally should be in the root of a drive rather than nested within other folders. I have it in my D:\MVP_ATIPEBuilder_v186\ folder where it works fine for all options of with / without ADK.
- Anmelden, um Kommentare verfassen zu können

Even though I've seen Steve's recommendation for running from the root of a drive, I've never had problems running the builder from deeper in a directory tree. Most recently I've run it from
D:\Acronis Utilities\ATI_PE_Builder\Advanced\MVP_ATIPEBuilder_v186_Signed
(or something very similar) on 4 computers with no problem. And the builder elevates itself when I forget to run it as administrator. (I'm sure there are times when those recommendation must be followed, but I haven't seen them lately.)
I have seen that error you ran into, though. I don't remember when or what caused it, but I have not seen it for over a year (with either v182 or v186). The last few times I installed the builder I did nothing special to avoid the problem.
How do you invoke the Builder? Do you have a shortcut pointing to the command or double click the command in File Explorer? Those work for me.
Do you try executing it from a command prompt or from within your own .bat or .cmd file? I would not be surprised if those techniques failed.
- Anmelden, um Kommentare verfassen zu können

The MVP_aitpebuilder.exe is run from a folder in the root directory. To run it I right click the MVP_ATipebuilder.exe and run as administrator.. From the attached screen shot you can see the location of the application and folder location.
Anhang | Größe |
---|---|
535499-181965.jpg | 202.95 KB |
- Anmelden, um Kommentare verfassen zu können

Please try doing a Windows restart then try the tool again, if it still gives an error then we will need to wait for Mustang (Paul) to chime in on this issue.
- Anmelden, um Kommentare verfassen zu können

I have restarted Windows multiple times between attempts. Also attaching a screen recording of this event.
Anhang | Größe |
---|---|
535548-181969.zip | 991.78 KB |
- Anmelden, um Kommentare verfassen zu können

theebear,
Try closing Windows Explorer before you start to answer any questions in the MVP Tool.
If that doesn't help, you may have a permissions problem with the C:\MVP_ATIPEBuilder folder. Make sure both Administrators and Users have full read/write permissions on the folder.
- Anmelden, um Kommentare verfassen zu können

Both the MVP_ATIPEbuilder.exe and the folder it is in have full control. File Explorer is not open at run time.
- Anmelden, um Kommentare verfassen zu können

When the program first pauses for a question after the error happens, open Explorer and look for a folder named Other at C:\MVP_ATIPEBuilder. You should see a number of files and folders including BatchSubstitue.bat. You should also see a folder named C:\MVP_ATIPEBuilder\afolder\Scratch. Check the permissions on Scratch and Other.
If there are no permissions problems on those two folders, try downloading the MVP Tool again. BatchSubsttute.bat should be copied to Scratch just before you see the first error. The error indicates BatchSubstitute.bat is not there. If you leave Explorer open at runtime, you should see the folder C:\MVP_ATIPEBuilder\afolder\Scratch created and BatchSubstitute.bat should be copied there. When the program pauses for the next question, C:\MVP_ATIPEBuilder\afolder\Scratch should be empty. C:\MVP_ATIPEBuilder\Other should still be there and contain BatchSubstitue.bat.
- Anmelden, um Kommentare verfassen zu können

I downloaded MVP_ATIPEbuilder 186 again and put it's extracted folder in the root. After the second pause during creation I found folders Scratch and Other but not in folder MVP_ATIPEbuilder but in my \Local\Temp\Afolder. Both have full permissions. At his time batchsubstitute.bat is in the Scratch folder. After continue with the create and error occurs and the builder just goes away. After that The Scratch folder is empty and the Scratch folder contains 3 WinREstatus.tx files.
- Anmelden, um Kommentare verfassen zu können

I, too, found the afolder in my Appdata\Local\Temp\ folder rather than in the Builder's folder. My Builder works so I think your placement of the BatchSubstitute.bat in AppData is not the problem. What is in your BatchSubstitute.bat?
Mine contains
@echo off
REM -- Prepare the Command Processor --
SETLOCAL ENABLEEXTENSIONS
SETLOCAL DISABLEDELAYEDEXPANSION::BatchSubstitude - parses a File line by line and replaces a substring"
::syntax: BatchSubstitude.bat OldStr NewStr File
:: OldStr [in] - string to be replaced
:: NewStr [in] - string to replace with
:: File [in] - file to be parsed
:$changed 20100115
:$source http://www.dostips.com
if "%~1"=="" findstr "^::" "%~f0"&GOTO:EOF
for /f "tokens=1,* delims=]" %%A in ('"type %3|find /n /v """') do (
set "line=%%B"
if defined line (
call set "line=echo.%%line:%~1=%~2%%"
for /f "delims=" %%X in ('"echo."%%line%%""') do %%~X
) ELSE echo.
)
- Anmelden, um Kommentare verfassen zu können

My Batchsubstitute.bat is
@echo off
REM -- Prepare the Command Processor --
SETLOCAL ENABLEEXTENSIONS
SETLOCAL DISABLEDELAYEDEXPANSION
::BatchSubstitude - parses a File line by line and replaces a substring"
::syntax: BatchSubstitude.bat OldStr NewStr File
:: OldStr [in] - string to be replaced
:: NewStr [in] - string to replace with
:: File [in] - file to be parsed
:$changed 20100115
:$source http://www.dostips.com
if "%~1"=="" findstr "^::" "%~f0"&GOTO:EOF
for /f "tokens=1,* delims=]" %%A in ('"type %3|find /n /v """') do (
set "line=%%B"
if defined line (
call set "line=echo.%%line:%~1=%~2%%"
for /f "delims=" %%X in ('"echo."%%line%%""') do %%~X
) ELSE echo.
)
- Anmelden, um Kommentare verfassen zu können

I may have missed something, but it looks the same as mine. At the very least, it looks like it's an exectable .bat file and the error message suggests it's not (or that the Builder can't find it). Back to permissions, perhaps?
- Anmelden, um Kommentare verfassen zu können

Sorry, I forgot I'm running a modified version that works in the source folder. You are correct, afolder should be found in the %TEMP% folder. By default that would be C:\Users\UserName\AppData\Local\Temp.
There is a command in the program to change the directory to Scratch just before the BatchSubstitute.bat commands are run. If BatchSubstitue.bat is in the Scratch folder mat that time, the commands should run without error. I don't understand why it is happening only on your system.
- Anmelden, um Kommentare verfassen zu können

This issue for me is now resolved. The problem was caused by the fact that when I installed the windows ADK I didn't know there was an additional add-on that was required called Windows PE add-on for the ADK. Once that was installed the create USB using ADK method worked like it is supposed to.
- Anmelden, um Kommentare verfassen zu können

Thanks for letting us know.
- Anmelden, um Kommentare verfassen zu können

theebear wrote:...The problem was caused by the fact that when I installed the windows ADK I didn't know there was an additional add-on that was required called Windows PE add-on for the ADK. ...
Ah, yes! That's probably why I ran into this same problem once, too. Microsoft changed the way packaged the ADK, breaking it into (at least) two pieces some time ago.
This probably all makes sense for actual developers, but I install ADK only because of the WinPE Builder and don't really have a clue what the various parts of the ADK are for or what they do.
- Anmelden, um Kommentare verfassen zu können