CODE
@echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo Power Configuration for your laptop
start /wait Settings\cmd\PowerOptions.cmd
@echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
if "%COMPUTERNAME%" neq "ME" (
echo Adding your Credentials informations in storage of network password
start /wait Settings\cmd\AddCredentials.cmd
)
@echo Power Configuration for your laptop
start /wait Settings\cmd\PowerOptions.cmd
@echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
if "%COMPUTERNAME%" neq "ME" (
echo Adding your Credentials informations in storage of network password
start /wait Settings\cmd\AddCredentials.cmd
)
As soon as it go down the "if "%COMPUTERNAME%.... it closes.
How to solve this and is there any workaround ?
If i tape this instruction manually it works fine but looks like if I use a bat file it doesn't work.