PowerShell: Create New File
Create New File
# create a empty new file in current dir New-Item xnew.txt
# create a file with content New-Item xnew.txt -value "abc"
new-item
has aliasni
PowerShell. Working on Files
- PowerShell: Copy File
- PowerShell: Rename File
- PowerShell: Move File
- PowerShell: Delete File
- PowerShell: Create New File
- PowerShell: Create File Symbolic Link, Hard Link, Junction
- PowerShell: Get File Content
- PowerShell: Join Files
- PowerShell: Compare Files (Show Difference)
- PowerShell: Open File by Default App
- PowerShell: File Date Time