Search




hits.Login
purpleender
41772
Newmarket
Bumder
Jock
Gonna get High till the day I die! Reality is an illusion that occurs due to lack of resin.
PowerShell - Create A File
Microsoft PowerShell - Create A File |
![]() |
To create a file 'c:\temp\andy\andy.txt':
#Check for file c:\temp\andy\andy.txt and create if doesn't exist
If (Test-Path c:\temp\andy\andy.txt)
{
"File Exists"
}
Else
{
"File Doesn't Exist"
new-item c:\temp\andy\andy.txt -type file
}



