Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a technology to predefine Windows filename in any save dialog? I want to add a prefix to my files with the current date? Is there a technology that I can replace the file name with a prefix in any save dialog?

share|improve this question
    
The date is already in the file's metadata, to have it in the file name as well is useless. –  Tom Wijsman Sep 29 '12 at 8:05
    
Yes, it's a bad habit. –  Phpdna Sep 29 '12 at 8:17
    
@TomWijsman: What if you have a Programm when you can't change the name? It's always the same name so it's get overwritten when you save it? Is this still useless application? –  Phpdna Oct 1 '12 at 9:04
    
That's a totally other question then. –  Tom Wijsman Oct 1 '12 at 9:12
    
@TomWijsman: What do you mean? Can you elaborate? You can edit my question to make more sense? –  Phpdna Oct 1 '12 at 9:41

2 Answers 2

up vote 1 down vote accepted

You could conceivably write an AutoIt script that runs in the background and sets a global hotkey. Then every time you are in a save dialog, you could press the hotkey and have the script get the handle of the dialog and auto-insert the current date in the filename field.

If you want to automate it even further, I guess you could have the script poll for save dialogs at regular intervals (say every 5s, although I don't know about the possible impact on the system), then have it add the date as required whenever such a dialog is found open.

That's one way you could possibly accomplish this. As for the script itself, someone far more well-versed in AutoIt coding needs to help, else you can always post on the AutoIt forum.

share|improve this answer
    
Is there something similar for Linux? Sounds like a macro to me? –  Phpdna Sep 29 '12 at 8:19

I believe that it is not something that is exposed

I know that due to time constraints the "defaultsavename" attribute in microsoft silverlight language is not open to editing though it is on the list of things to do for the developers however if the attribute exists, its probably set on a program by program basis by the coders

share|improve this answer
    
So it can't be done? Is it to complicated to write a kernel module? –  Phpdna Sep 28 '12 at 20:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.