Page 1 of 1
Cmd 2 Powershell
Posted: 05 Jun 2011 23:28
by Cleptography
Is it possible to execute a powershell command and exit back to cmd?
Re: Cmd 2 Powershell
Posted: 05 Jun 2011 23:31
by Ed Dyreen
Yes,
start "title" /wait "CMD" /c "echo.&pause"
echo. %return%
start "title" /wait /b "CMD" /c "echo.&pause"
echo. %return%
start "title" /wait "powershell" "params"
echo. %return%
What do you want to do ?
Re: Cmd 2 Powershell
Posted: 05 Jun 2011 23:44
by Cleptography
Good work Ed.
A little integrating between cmd and powershell might be fun.