Summary: Launch legacy applications from Windows PowerShell.
Can I execute an old batch script in Windows PowerShell?
To launch an old command or batch file from within a Windows PowerShell script, launch Cmd.exe with the /C parameter:
CMD.EXE /C PAUSE
Or if it’s a .bat or .cmd file, you can put it directly within the Windows PowerShell script and run it:
\BAT\CAVE\RUNME.CMD
Note Your results will be in the $LASTEXITCODE.
0 comments