Tuesday, 15 May 2012

vbscript - vb6 error code 800A0401 on open for as statment to write to file -


I am trying to run the following VBS script but error 800A0401 (error: expected end of position), line 1 column 1 . To add # 1 as print # 1, click on "Test" # Close the # 1

  Open "C: \ Log.txt "> 

If you want to do this in VBSSP, you have to use it:

  Const Set the ForAppending = 8 set fso = CreateObject ("Scripting.FileSystemObject") f = fso.OpenTextFile ("C: \ log.txt", ForAppending) f.WriteLine "test" f.Close    

No comments:

Post a Comment