How to prefix, or insert into, a file name with current time while saving file on the fly ?

doug_ross 1 Reputation point
2022-11-16T17:51:51.51+00:00

Hi.
Here is the on-the-fly process when I need a time insert:

  1. After downloading a file, the save (as) window pops open (thru the windows file explorer),
  2. This is when I need to insert a year/ month/date (or just to insert month/date depending on the time sequence of the files already saved),
  3. I may need to prefix, OR insert into the middle of, the original file name ( that come with the file).

If this sound like calling for an app's feature targeting at a keyboard shortcut to output an expression at the cursor position? Can Power Toys, or any other Windows tools do it?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,277 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 54,731 Reputation points
    2022-11-16T18:26:07.427+00:00

    Hi @doug_ross

    You can do this with PowerRename (PowerToys).

    1) Download PowerToys from Microsoft Store:

    https://apps.microsoft.com/store/detail/microsoft-powertoys/XP89DCGQ3K6VLD

    2) Go to the directory/folder your files are in > Select All > Right click > Go to PowerRename

    261092-image.png

    3) Check off Use regular expressions > Add .{0} for Search for > Add Replace with to $YYYY-$MM-$DD $1 > Hit Apply

    261047-image.png

    It should now look like:

    261111-image.png


    If this is helpful please accept answer.

    0 comments No comments

  2. doug_ross 1 Reputation point
    2022-11-21T17:10:40.727+00:00

    Hi DillonJS,
    Thank you for answering.
    From first read, I've got impression your answer is a powerful feature of PTs to batch naming files. It may come handy if reorganizing a large amount of files. But It's not quite what I'm looking for. That said, I realized my question posted actually is not quite clear.
    Here is the on-the-fly process when I need an insert:

    1. After downloading a file, the save (as) window pop open (thru the windows file explorer),
    2. This is when I need to insert a year/ month/date (or just to insert month/date depending on the time sequence of the previous files already saved),
    3. I may need to prefix, OR insert into the middle of, the original file name ( that come with the file).

    If this sound like calling for an app feature targeting at a keyboard key to output an expression at the cursor position?

    0 comments No comments