Somewhere, Something Incredible Is Waiting To Be Known !!!
(Move to ...)
Home
▼
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
‹
›
Home
View web version
No comments:
Post a Comment