Originally posted by chenall at 2008-12-14 09:43:
Well, the above can be achieved, but if it is placed in a batch file, calculating the character length will be more troublesome.
Another question, does the program return an error level value?
For example, for a search, what is returned on success? What is returned on failure?
#define SUCCESS 0
#define COMMON_USE_ERROR 1
#define OPEN_FILE_ERROR 2
#define PRG_MODIFIED 3
#define FILE_READ_ERROR 4
#define PARAMETER_ERROR 5
#define CREATE_FILE_ERROR 6
#define FILE_WRITE_ERROR 7
#define SRCFILE_DSTFILE_SAME 8
#define USER_CANCEL 9
#define FILE_NOT_EXIST 10
#define FILE_SEEK_ERROR 11
#define STRING_NOT_FOUND 12