Create Script to rename files after parent directory

squick3n

New Member
Messages
1
I have a bunch of pdf files that are named "minutes.pdf", each alone within a directory that tells me what they are.

So the file path would be D:\WaterBoard\August2012\minutes.pdf

Every pdf is named "minutes.pdf" if this helps.

How would I create a batch file that would give the pdf a file name of the folder within which it is located? I've got like 400 of these so a script would be super useful. Thanks for any guidance!
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    PC/Desktop
There is a subforum on DonationCoder.com that does nothing but these small requests:
Post New Requests Here - DonationCoder.com

Please read the guidelines before posting.

Of course someone here may post a script or batch for you also.
 

My Computer

System One

  • OS
    Windows 8.0 x64
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satelite C55D-A Laptop
    CPU
    AMD EI 1200
    Memory
    4 gb DDR3
    Graphics Card(s)
    Raedon 340 MB dedicated Ram
    Monitor(s) Displays
    Built in
    Screen Resolution
    1366 x 768
    Hard Drives
    640 GB (spinner) Sata II
    Keyboard
    Built in
    Mouse
    Touch pad
Back
Top