Thursday, October 23, 2014

Very Handy PowerShell Command

I recently get involved in the development with Power Shell.  I found that some of power shell  command is

quite helpful for debug purpose.


Read-Host  will keep the power shell console window open when you right the power shell script and execute it by launching the Power Shell window. we can see the outcome of the script execution.


pause will  keep power shell console window open when you run the ps by using the windows batch file.


Set-Location will change the folder where the script stored.

-C put this in front of the comparison operator will solve the power shell case intensive issue in string comparison

(`) will add a line break to chop a long script into multiple lines






No comments:

Post a Comment