1.

Solve : Code to automatically add date & time to a file name (revisted)?

Answer»

Hi all,
First off, GREAT site, a lot of helpful information available!  My experience is very limited
when it comes to writing code.

As the TOPIC indicates, I need to add a DATE and time stamp to pdf files that are auto saved
to a folder via a scanner.  CURRENTLY, I scan a page into a scanner that is configured to auto
name the file using current date and time and auto save it in a specified folder.  However, I
need to add more information to the name for search purposes.  It does not have an option
to prompt for text in ADDITION to the date & time.

So what I would like to do is reconfigure the software so it prompts for a name only and then
after it is saved to a folder have a batch file auto rename it adding the date and time stamp as
soon as it is saved to the folder.

Is this possible?   In topic 78932, the batch file is written to rename a specific file named catalog.mbd.  In
this case, the initial file name would be a variable but not sure what the variable would be.  Any help would
be greatly appreciated

Thanks in advance

Five-alarm



give examples. how does your final file name look like? (ie the format of the date and time + filename)After the document is run through the scanner, I will get a prompt asking for a name. 

I will type in "wo5000"

It will then be auto saved in D:\scans\wo5000.pdf

After this happens I would like a batch file to then auto rename it with the
the current date and time as follows:

wo5000_06-11-09_04.22.55.pdf

Every time a file is saved into the folder I want this to occur.



Discussion

No Comment Found