Windows 10: Any way to make a batch script to rename the most recent file?

Discus and support Any way to make a batch script to rename the most recent file? in Windows 10 Support to solve the problem; found scripts to locate a the most recent file, and scripts to rename files, but no combination. basically id need a script to rename, the most recent... Discussion in 'Windows 10 Support' started by ReallyFrustratd, Dec 14, 2020.

  1. Any way to make a batch script to rename the most recent file?


    found scripts to locate a the most recent file, and scripts to rename files, but no combination.

    basically id need a script to rename, the most recent .pdf file added to "W:\Declarations", to 'decs365.pdf'

    any help is greatly appreciated

    :)
     
    ReallyFrustratd, Dec 14, 2020
    #1
  2. ARC1020 Win User

    Any good Batch file renaming software / scripts


    I assume you still have Photoshop CS6 installed? If so you could try using the Batch Rename tool in Adobe Bridge as firstly you already have it installed and secondly it's a pretty good Batch Rename tool.

    Bridge > Tools > Batch Rename

    These screenshots are from CS4, so they may be slightly different to yours in CS6. Also, I don't have any M4a files to try it with. The other thing you may need to experiment with is whether to use 'Date Modified' or 'Date Created' depending on the dates on the files. You can manually add dates by using a text field rather than a date field, but using date fields would obviously be better.


    Any way to make a batch script to rename the most recent file? [​IMG]



    Any way to make a batch script to rename the most recent file? [​IMG]
     
    ARC1020, Dec 14, 2020
    #2
  3. How to Batch Rename files ?

    I have a lot of files I want to give names to. I already found a way to get names into a text I need. So all these names i have in text, I want to give to other files.

    How do i do this in a batch process ?

    Currently trying to learn FastStone Image viewer. Seems to be updated version of Resizer by the same company?
    That has been useful for other batch processes for images . But I've yet to figure the batch naming options .

    A different software I'm considering for this task is called Advanced Renamer .

    Maybe I've become too slow through the years because :
    I've been looking for the right tutorial that I can clearly understand and found none .
    They seem to be out of my grasp .


    Note : I currently use a bat file, that takes the names of other files I have in a folder and puts them into a text file.

    ( I'd prefer a one click Bat process ideally for this specific task ) .

    So I'd be happy with a bat file that can also take those names in my text list
    and apply them to files I want to rename in any given folder with those . If anyone knew how to do that.

    It don't matter the order applied - as long as each file in the folder receives one name from the list.
    The names I pulled are from images in a folder. The names are to be applied to a equal number of files ,
    which is a different extension. so no worry about them having the same name. So just the names .




    - - - Updated - - -

    I found this thread. But unsure how to apply it and its replies into the bat i need ?

    stackoverflow rename-files-after-a-list-of-names




    Update possible reference
    for loop - Creating a batch file to rename TXT files based on content (removing inappropriate syntax) - Stack Overflow

    - - - Updated - - -

    and yet another reference i need help understanding if its useful
    windows - Generate file-folder list.txt file in a directory/subdirectory & rename list.txt to folder/subfolder name using dir & ren command in a batch file - Stack Overflow
     
    OtherWay1982, Dec 14, 2020
    #3
  4. jimbo45 Win User

    Any way to make a batch script to rename the most recent file?

    Any good Batch file renaming software / scripts


    Hi there

    never thought of that one -- Brilliant --worked fine

    Cheers
    jimbo
     
    jimbo45, Dec 14, 2020
    #4
Thema:

Any way to make a batch script to rename the most recent file?

Loading...
  1. Any way to make a batch script to rename the most recent file? - Similar Threads - batch script rename

  2. Trying to make a batch file script to change the DNS on a workstation.

    in Windows 10 Software and Apps
    Trying to make a batch file script to change the DNS on a workstation.: I have tried just putting the command in a batch file and running that batch file as admin, but that doesn't work.I need it to run as elevated cmd.The code I have used in an elevated cmd that works:netsh interface ipv4 add dns "Ethernet" 10.100.0.11 index=2I would like to be...
  3. Trying to make a batch file script to change the DNS on a workstation.

    in Windows 10 Network and Sharing
    Trying to make a batch file script to change the DNS on a workstation.: I have tried just putting the command in a batch file and running that batch file as admin, but that doesn't work.I need it to run as elevated cmd.The code I have used in an elevated cmd that works:netsh interface ipv4 add dns "Ethernet" 10.100.0.11 index=2I would like to be...
  4. batch rename files

    in Windows 10 Support
    batch rename files: hello, id like to remove characters in file names... using cmd, ive been able to remove "." (the dot) and replace it with a space and but hopefully keep the extention id like bou.bou.bou.txt to be renamed to bou bou bou.txt i tried : ren *.*.??? * *.??? obviously i want to...
  5. Rename files in batch.

    in Windows 10 Network and Sharing
    Rename files in batch.: Hi All.. I am having some files nearly 2000 in nos. in a particular folder. I just need to replace some portion. Is it possible that I can do it instantaneously.. if so please guide....Details are furnished below.Old file Name : P12478-12-71-41-1781-01.dwg...
  6. Is there a way to batch rename files?

    in Windows 10 Ask Insider
    Is there a way to batch rename files?: I have a file with pictures formatted as "A-B-C" and need to change all the dashes to underscore such as "A_B_C". Is there a way to do this as a batch in the folder somehow? submitted by /u/gingernuts13 [link] [comments]...
  7. Batch Rename Script Help!

    in Windows 10 Support
    Batch Rename Script Help!: Hello! I am very new to this and need a little help. I am trying to create a batch file that will rename files that are called png_X.png (the X being the number page it is). The code I have is below. It works fine with out the pipe sort command but it sorts the by the ones...
  8. How to Batch Rename files ?

    in Windows 10 Software and Apps
    How to Batch Rename files ?: I have a lot of files i want to give names to. I already found a way to get names into a text I need. So all these names i have in text, i want to give to other files. How do i do this in a batch process ? Currently trying to learn FastStone Image viewer. Seems to be...
  9. Any good Batch file renaming software / scripts

    in Windows 10 Support
    Any good Batch file renaming software / scripts: Hi there does anybody have any decent batch file renaming software or scripts. Here's a whole slew of music files from BBC Radio 3 -- what I want is after the word Breakfast in the title to insert date and time (european format YYMMDD.HHMM -24 hr format. Here's what...
  10. Batch Rename Deletes Files

    in Windows 10 Performance & Maintenance
    Batch Rename Deletes Files: Hey all, I just upgraded to Windows 10 last night, and I've been playing around with the new File Explorer. One thing I tried was the batch rename function (by which I mean just selecting multiple files and clicking "rename"). I quickly realized that it behaves differently...