This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -rec | ? {-not ($_.FullName -match '\\(NUnitConsole|TestRun)\\')} | write-zip -output "$(datefn).zip" | |
#### If you want to get fancier... | |
# (1) Make a list of files touched in the last hour. | |
$fs = ls c:\work\sxa\18.4cu2\Projects\VisitRecord\VRDotNet\Portal\SXA.VR.Portal\bin ` | |
| ? {$_.LastWriteTime -ge (Get-Date).AddMinutes(-60)} | |
# (2) Add to it. The '+=' operator actually makes a new Array by copying the old Array + the entry(ies). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-HomeLocation { | |
# Using 'Run as administrator' does not set $Home, so try other variables as well | |
if ($variable:Home) { | |
$variable:Home | |
} elseif ($env:Home) { | |
$env:Home | |
} elseif ($env:UserProfile) { | |
$env:UserProfile | |
} else { | |
$null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: nil | |
--- | |
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title type="text" xml:lang="en">{{ site.root_desc }}</title> | |
<link type="application/atom+xml" href="http://paulstamatiou.com/feed/" rel="self"/> | |
<link type="text" href="http://paulstamatiou.com" rel="alternate"/> | |
<updated>{{ site.time | date_to_xmlschema }}</updated> |
NewerOlder