Here’s another batch file example. It includes the date and time in the filename of scanned files.
Aside from the benefit of keeping that useful information with the file, it also allows you to scan a bunch of pages without having to rename each file as you scan.
The “set datetimef=…” line controls the actual format of the datetime stamp. Some may wish to use “%year%-%month%-%day%T%hour%%min%%secs%”.
I personally use “%year%%month%%day%.%hour%%min%” in other projects; but only for consistency with a choice made long ago – the use of standard separators (as in the example) or an international format will make your life easier in the long run.
Thank you to Jonas Schmuttermair for providing the example. I hope many of you find it useful.
The example provided here is free of charge but it is also without warranty of any kind. The user is responsible for determining its suitability or otherwise for their particular needs. Neither the authors, nor GssEziSoft, accept liability for any problems arising out of the use of the example program.
Download the Example
Right click and Save the example code.
You can also download CmdTwain for free.