Wednesday, 11 January 2017

Powershell to create log file


##LOGFILE CREATION

$LogFile = "D:\**.log"
function Logw([string]$var)
    {
    $Date =(Get-date).ToString();
    $Date + $var | out-file $LogFile -append -encoding utf8
    }

No comments:

Post a Comment

Git

1 git add ↳ It lets you add changes from the working directory into the staging area 2 git commit ↳ It lets you save a snapshot of currently...