windows - Why is command start with parameter /wait not working properly? -


ok racking brain!!! have 1 batch file start batch file every time run batch file open command window title being batch file located. here batch file that's preforming start /wait command:

::------------------------------ configure power settings ---------------------------  @echo off  start /wait "%~d0\setup_postop\01 configure power settings\always on.bat"  ::------------------------------ programs , features ------------------------------  start /wait "%~d0\setup_postop\02 uninstall unwanted software\programs , features.bat" 

the above batch file supposed run "always on" batch file open command window. here "always on" batch file trying start:

@echo off  echo not close!!!  %windir%\system32\powercfg.exe /import "%~d0\setup_postop\01 configure power settings\alwayson.pow" 2f5ac084-2edf-444a-b1b9-8de872cf798e  %windir%\system32\powercfg.exe /setactive 2f5ac084-2edf-444a-b1b9-8de872cf798e  start /wait %windir%\system32\powercfg.cpl  exit 

i've tried , research pointing bug in start command? i'm in arms one!

the start command handle first quoted argument title of new window.

try

start /wait "" "%~d0\setup_postop\01 configure power settings\always on.bat" 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -