-diagnoselog

Top  Previous  Next

-diagnoselog LogFile

 

The -diagnoselog command allows diagnostic information to be written to the file specified by LogFile.  To turn on diagnostic mode, the -diagnose command is used.  If LogFile contains spaces in the file name, LogFile must be enclosed in double quotes.

 

DTWAIN_TwainSave("-diagnose 1 -diagnoselog diagnose.log -f test.bmp");

DTWAIN_TwainSave("-diagnose 1 -diagnoselog \""c:\\Test\\My Logs\\diagnose.log\"" -f test.bmp");

 

Note that the second example enclosed the file path c:\Test\My Logs\diagnose.log in double quotes because of the space in "My Logs".

 

Also note that C/C++ escape sequences are used to embed double quotes and backslashes in the string.  Please consult your language as to the proper way to insert double quotes and backslashes within quoted strings.