PowerShell is a command prompt and a scripting environment designed for Windows system administration.

learn more… | top users | synonyms

3
votes
2answers
50 views

Updating multiple svn repositories using powershell

I wrote a script to perform svn update on all the SVN repositories inside a folder. It would have been great if the folder containing all these repositories itself was a repository, but it was not ...
1
vote
1answer
24 views

Summarize a directory with PowerShell

I'm trying to output aggregate information about a directory tree (file extension plus accumulative count and size per file type) with PowerShell. This is as far as I've got. gci -r -ea Si ` | ...
0
votes
0answers
118 views

Powershell CSV Validator

I have the following PS Function for validating CSV files. The CSV Files are in the format EmpNo (int), Type (int), StartDate (DateTime), EndDate (DateTime) And the powershell script verifies the ...
3
votes
1answer
73 views

Can this Powershell be simplified?

I wrote a script to remove .vb code files when there are corresponding .cs files in a certain directory structure. But I felt like there were some extra statements that I had to put in there that ...
4
votes
1answer
210 views

Is this code idiomatic powershell?

Function Enumerate-Properties($fileName) { $path = (Get-Item $fileName).FullName $shell = New-Object -COMObject Shell.Application $folder = Split-Path $path $file = Split-Path $path ...
3
votes
0answers
333 views

PowerShell Module for formatting objects using Razor

A few days ago I started playing around with PowerShell. I thought a good way to learn would be to try and write a module that allowed formatting objects using the Razor Engine created for ASP.NET. I ...