1 reputation
2
bio website brassfly.com
location San francisco
age 42
visits member for 2 years, 5 months
seen yesterday

Senior scientist, lifelong student.


1d
comment Truncate a log file by datetime using Powershell 2.0
Ah, nice effort. Let me look this over and post an update. Thanks beatcracker.
Mar
3
comment Truncate a log file by datetime using Powershell 2.0
Thanks @wmz. But the post you are referencing advocates not using PowerShell for this (I agree) and using StreamReader if one insists on using Powershell. My project is looking specifically for a Powershell implementation that is faster than available using streamreader/streamwriter.
Feb
26
awarded  Editor
Feb
26
revised Truncate a log file by datetime using Powershell 2.0
added 323 characters in body
Feb
26
comment Truncate a log file by datetime using Powershell 2.0
Oh right. I've been wasting time with StreamReader/StreamWriter... Generally revolving around finding the first line that starts after the cutoff date and writing out the rest of the file.
Feb
26
asked Truncate a log file by datetime using Powershell 2.0
Aug
16
comment Copy content of txt file without opening it
I posted this method because the accepted answer does not work in my scenario... and the question (still) doesn't state a flavor of command prompt. My method doesn't depend on what prompt you use. So, this is just a wheel...the purple wheel only goes on the purple car. :)
Aug
15
comment Copy content of txt file without opening it
Actually the first answer does not use either the pipe "|" or the "type" keyword and the "<" operator is 'reserved for future use' in PowerShell and a few others. The method I suggest is also useful, different, and has the advantage of not requiring a registry edit...it just does what it should. Having a bad day Scott?
Aug
12
answered Copy content of txt file without opening it
Oct
2
awarded  Autobiographer