Hello everybody,
   
  Can anyone tell me why this simple code does not work?
   
  <Job ID="Test">
  <script language=PerlScript>
   
  $objFSO = $WScript->CreateObject("Scripting.FileSystemObject");
  $objFile = $objFSO->CreateTextFile("test2.txt", ForWriting);
   
  $objFile->WriteLine("Hello");
   
  
</script>
</Job> 
  
I got this error:
Error: (in cleanup) Can't call method "Writeline" on an undefined value
  
I suspect something with FileSystemObject but I could not find anything on the 
web and I have been searching for some days :-((((
   
  ...but the same code in java or VBscript works.
   
  Any help will be really well apreciated.
   
  Thanks in advance.
   
   
   
   

       
---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.

Reply via email to