Multiple choice technology programming languages

If I sue Get-Process >>c\fso\process.txt and the c:\fso directory does not exist already.Windows powershell will automatically create the folder, and then create the file.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

PowerShell's redirection operators (like > and >>) can create new files but will not automatically generate non-existent parent directories. Attempting to write to a path without the directory already existing will fail and result in a directory not found exception.