Answer the question
In order to leave comments, you need to log in
How to run cmd inside bat to execute commands?
%comspec% /k "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\DandISetEnv.bat"
copype amd64 c:\winpe_x64 & cd "..\..\Assessment and Deployment Kit\Windows Preinstallation Environment" #I need to run the commands one by one in the Deployment and Imaging Tools Environment console,
how can I do this?
Answer the question
In order to leave comments, you need to log in
The batch file is already executed inside cmd. Usually, you do not need to run additional cmd.
Just write the necessary commands in the batch file and run in cmd or explorer (then cmd will start automatically and execute the batch file).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question