Hello everybody,
Can anyone tell me why this simple code does not work?
$objFSO = $WScript->CreateObject("Scripting.FileSystemObject");
$objFile = $objFSO->CreateTextFile("test2.txt", ForWriting);
$objFile->WriteLine("Hello");
I got this error:
Error: (in
Thanks Tom, it helped. :-)
I learned some more few things. ;-)
Regards,
Tom Phoenix <[EMAIL PROTECTED]> wrote:
On Dec 30, 2007 10:17 AM, oscar gil wrote:
> What I still don't understand is why $! and $^E are set as there was an
> error though there was not :-?.
Th
0<-
"
:-?
Using 'open' I cannot say if the 'del' command was done correctly or not,
although there is a message probably to STDERR that I do not know how to
manage. :-(
So far, I use 'open' a lot because if I open a file I can manage the
information usin
Hello everybody,
I wanted to learn a bit more about how to handle errors when I am working with
files, so I wrote this simple script to start with it where you can see that
first I show the normal perl errors variables, then I try to delete a file and
finally I show the errors variables again.
T