PowerShell - File and Directory Operations
Which of the following is the correct syntax to delete a file named
log.txt using Remove-Item?log.txt using Remove-Item?-Path specifies the file or folder to delete. It should come before the file name.Remove-Item -Path log.txt, which is correct syntax. Others misuse parameters or use invalid flags.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions