Showing results for March 2015 - Page 11 of 12 - Scripting Blog [archived]

Mar 5, 2015
0
0

PowerTip: Use PowerShell to Identify Files Without an Extension

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to identify files that do not have an extension.  How can I use Windows PowerShell to easily identify files that do not have an extension?  Use the HasExtension static method from the System.IO.Path .NET Framework class, for example: [System.IO.Path]::hasExtension("C:\fso\FileWithOutExtension...

Scripting Guy!Windows PowerShellPowerTip
Mar 5, 2015
0
0

Don’t Write Scripts: Use Snippets

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell snippets to avoid scripting demands.  Hey, Scripting Guy! One of the things that I find myself having to do from time-to-time is write scripts. I really don’t like to write scripts, but sometimes I cannot find what I need to, and I cannot avoid it. I really...

Scripting Guy!Windows PowerShellscripting techniques
Mar 4, 2015
0
0

PowerTip: Use PowerShell to Find Temp User Directory

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to find the temporary user directory.  How can I use Windows PowerShell to find location of my temporary user directory?   Use the GetTempPath static method from the System.IO.Path .NET Framework class: [System.IO.Path]::GetTempPath() 

Scripting Guy!Windows PowerShellPowerTip
Mar 4, 2015
0
0

Don’t Script: Edit PowerShell Command History

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about editing the Windows PowerShell command history.  Hey, Scripting Guy! I liked your ideas in Avoid Scripting: Use PowerShell Command History. My problem is that I seldom (if ever) type commands perfectly the first time—often, not even the second time. This means that I end up with a ...

Scripting Guy!Windows PowerShellscripting techniques
Mar 3, 2015
0
0

PowerTip: Use PowerShell to Generate Random File Name

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to generate a random file name.  How can I use Windows PowerShell to generate a random file name so I can ensure that            a file I create does not have a naming conflict?  Use the GetRandomFileName static method from the System.IO.Path .NET Framework   &nb...

Scripting Guy!Windows PowerShellPowerTip