On Oct 10, 1:07 pm, sko002 <sko...@xxxxxx> wrote:
> I just installed powershell on my pc (which has the required configuration)
> but i can not even make simple task like file creation such as :
> PS W:\> "hello !" | Out-File c:\test.txt
> It returns this error below :
> Out-File : Unknown error "-1".
> At line:1 char:21
> + "hello !" | Out-File <<<< c:\test.txt
> I have searched for such topic on the web but nothing...
> Someone can help please ? Thanks.
There isn't anything wrong with what you are trying to do. Is it
possible you don't have the proper permissions to write to C:\? Try
creating the file with redirection, and see if you get the same
"hello !" > c:\test.txt