Error codes for File management functions
The table below lists the possible error codes for the WinTask File management functions, for the errors stopping script execution (unless #IgnoreErrors=1).
-2
Index too big when running WinTask Excel functions (the array is smaller than the number of cells)
-1
ColeDispatch Exception : Error returned by Excel when an invalid operation is attempted by WinTask Excel functions
1
File empty
2
File not found
3
Path not found
4
Too many files open
5
Path empty
6
Directory already exists
7
File already exists
8
Not enough memory
9
File or path not found (TaskExec could not find if it's the file or the path which is not found)
10
Incorrect disk
11
Error in current directory
12
Write protected
13
Unable to copy files
14
Unable to delete files
15
Unable to name files
16
Unable to move directory
17
Unable to create directory
18
Unable to delete directory
19
Unable to change directory
20
Unable to write (or save)
21
Directory full
22
Bad sector
23
Error IO
24
Violation error
25
Disk full
26
Unable to create file
27
Unable to open file
28
Unable to readi file
29
Invalid file
30
Unable to close file
31
Invalid length
32
Unable to change attributes
90
Internal XML COM error
99
Invalid parameters
110
Invalid XML path
111
Invalid XML attribute or XML attribute not found
112
Index too big (return code only for the XML functions)