Hi,
How can I call a powershell script from within a DOS batch script ( . bat ) file ?
Thanks
Ireshad
Technology Tips and News
Hi,
How can I call a powershell script from within a DOS batch script ( . bat ) file ?
Thanks
Ireshad
Hi,
You can do this using like the following in your shell script (batch file):
Hi Ireshad,
You can use -File to specify which file should be run. Save this as a batch file:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File C:\Scripts\Script.ps1
Here's some additional information on other switches that you may need: