Hello !
When I use Out-File to force to create a path when it does not exists, the
command failed.
Ex: Get-Process powershell | Out-File ./temp/toto.txt -force
Out-File : Impossible de trouver une partie du chemin d'accès
'D:\Users\Arnaud\Documents\@@PowerShell\scripts\temp\temp\toto.txt'.
Au niveau de ligne : 1 Caractère : 34
+ Get-Process powershell | Out-File <<<< ./temp/toto.txt -force
I have the rights to create files and directory on the destination.
I have also noticed that the -whatif parameter has no effect on this cmdlet,
is it normal ?
Best regards from France,
Arnaud PETITJEAN
http://www.powershell-scripting.com
The PowerShell's French Community



