-tempdir

Top  Previous  Next

-tempdir directory_name

 

Sets directory_name as the directory where DTWAIN_TwainSave will place temporary image and other files during the acquisition process.  The directory must already exist (DTWAIN_TwainSave will not create this directory if it does not exist).  Temporary files are removed once the file name specified with the -f option is saved successfully.

 

If the directory name contains spaces, the filename must use double quotes to enclose the name.

 

Example:

DTWAIN_TwainSave(" -f test.pdf -F pdf -tempdir \"c:\\my temp files\"");

 

Acquires to file test.pdf using the PDF format.  The temporary directory path is "c:\my temp files"

 

Note that in the example above, 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.

 

Default Setting:

The directory specified by the TMP or TEMP environment variable or Windows directory if TMP or TEMP is not defined in the environment.