Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: fileclose
This is the code:
:LOG IF FILEEXIST(LOGFILE) THEN FMODE = "APPEND" ELSE FMODE = "WRITE" END IF HOLD=FILEOPEN(LOGFILE,"%FMODE%") FILEWRITE(HOLD, "%LOGLINE%") FILECLOSE(HOLD) RETURN
If you are running your WBT script, by first launching WINBATCH.EXE (or WBAT16I.EXE), then you will run into this 5 file limitation. The solution is to launch your script from File Manager or Explorer, by double clicking on your WBT file.
Article ID: W13059
Filename: FileClose Greater than 5 Files Error.txt
File Created: 1999:04:15:16:51:28
Last Updated: 1999:04:15:16:51:28