Monthly Archives: April 2008

PowerShell file concatenation example.Get-content,Set-content code snippet

Posted on

Once you got how to copy one or several files, another common task is to concatenate several files from one directory and copy result to another. Find here how simple to do this with PowerShell – 1: #PowerShell file concatenation example 2:   3: # all text files from directory 4: $source = “c:\dir\*.txt” 5:   …Continue Reading

Powershell file copy example. Copy-Item code snippet

Posted on

Probably the first scheduled task you want to do is to periodically copy files from one location to another.Here the small snippet how to do it in powershell: 1: # defining log destination 2: $dest =”C:\somedirectory” 3:   4: #Creating destination directory 5: New-Item $dest -type directory -force 6:   7: #File to copy 8:   …Continue Reading

ETW tracing and command line tools(Logman.exe, TraceRpt.exe)

Posted on

Hi, I hope this page will help to find the answer how logman and tracerpt tools is used to process ETW logs.You can find general information about ETW usage visiting Usage:tracerpt.exe { <filename [filename …]> | -rt <session_name [session_name …]> } [options] Parameters:  <filename [filename …]>     Event Trace log file to process. Options:  -?                              …Continue Reading