Tuesday, May 26, 2015

Did you know that just typing the name of a .bat file will provide the command to run the .bat file in PowerShell?

.\Whatever.bat

...will run Whatever.bat, for example, assuming the Whatever.bat is in the folder at hand. Running the .bat file from PowerShell instead of just double-clicking on it will allow you to get some reporting if things go badly. Also, for more on PowerShell see: this

No comments:

Post a Comment