Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Best way to change the file extension in powershell

$path = 'C:	empImportantFile.txt'
Copy-Item -Path $path –Destination ([io.path]::ChangeExtension($path, '.bak')) -Verbose
Source by www.powershellmagazine.com #
 
PREVIOUS NEXT
Tagged: #Best #change #file #extension #powershell
ADD COMMENT
Topic
Name
1+8 =