Showing tag results for scripting techniques

Apr 9, 2015
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Verify Syntax of Path

Doctor Scripto

Summary: Learn how to use Windows PowerShell to verify the syntax of a path.  How can I use Windows PowerShell to verify that a path that accepts user input is using the correct syntax?  Use the –IsValid parameter of the Test-Path cmdlet, for example: PS C:\> $a = "c:\myfolder\nonexistentfile.txt" PS...

Scripting Guy!Windows PowerShellscripting techniques
Apr 5, 2015
Post comments count0
Post likes count0

Weekend Scripter: Use PowerShell to Count Words and Display Progress Bar

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to display a progress bar while counting the number of words in Word documents. Microsoft Scripting Guy, Ed Wilson, is here. One of the things that a writer does is keep track of words. This is not so much because one gets paid by the word (although in the past that w...

Scripting Guy!Windows PowerShellscripting techniques
Apr 4, 2015
Post comments count0
Post likes count0

PowerTip: Use Filter Parameter with Get-ChildItem in PowerShell

Doctor Scripto

Summary: Use the –Filter parameter with the Get-ChildItem Windows PowerShell cmdlet.  Why can't I get the –Filter parameter to work with the Get-ChildItem cmdlet?  Try using the FileSystem provider. The –Filter parameter will accept two wildcard characters ...

Scripting Guy!Windows PowerShellscripting techniques
Apr 4, 2015
Post comments count0
Post likes count0

Weekend Scripter: Using PowerShell to Look for Documents

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about different approaches to find documents with Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. It is a lovely weekend down here in the deep south USA. I am sipping a nice cup of English Breakfast tea with lemon, lime, orange pith, and Hibiscus flower added. I deci...

Scripting Guy!Windows PowerShellscripting techniques
Apr 3, 2015
Post comments count0
Post likes count0

PowerTip: Look at Most Recent Error in PowerShell

Doctor Scripto

Summary: Learn how to see the most recent error in Windows PowerShell.  I ran a script that fails. How can I use Windows PowerShell to find the most recent error?  Use $error, and to see the most recent error, look at error 0: $error[0]

Scripting Guy!Windows PowerShellscripting techniques