Windows 8 and 8.1 Forums

Create Script to rename files after parent directory

  1. #1

    Posts : 1
    Windows 8.1

    Create Script to rename files after parent directory

    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 System SpecsSystem Spec

  2. #2

    Posts : 2,130
    Windows 8.0 x64

    There is a subforum on that does nothing but these small requests:
    Post New Requests Here -

    Please read the guidelines before posting.

    Of course someone here may post a script or batch for you also.
      My System SpecsSystem Spec

Create Script to rename files after parent directory
Related Threads
Hi With the Command Prompt in Windows 8.x, which command should I use to delete all files and all subdirectories of a directory without deleting this root directory? Thanks Bye
I cannot seem to rename folders through Explorer in Windows 8.1. 60108 60109 I can copy, move, create, and delete them. I can rename them using the REN command from a command prompt. As far as I can tell, nothing else is wrong with my computer, but none of the fixes I've found so far...
Hi all, I got an excellent deal on an SSD (it's hard to beat free ;D ). It's incredibly small is the only problem, however. Only 32GB's. Anyways I installed windows on it, and before I've even entered the setup, I went back into the install CD, open command prompt and robocopied the Users and...
I took pictures with a tablet , the jpg files were downloaded and renamed in a notebook running windows 8; Files were sent to me by email , I saved the files in a folder on the disk of my desktop (windows 8); As I still have some changes on the file names, I tried to rename them and found...
As listed in the title. I'm having to Sysprep a build for a Tablet Device. The one remaining issue i have is that i cant get the unattend.xml to allow me to enter a PC name short of changing the "<SkipMachineOOBE> to False but the issue here is then that you end up having to setup a user...
Hi everyone I reinstalled a friends pc using recovery disks. I presumed his log in name was John so I put john in the set up in the box during the routine. I wanted to copy his stuff back to the original folders only to find he set up his pc name as 'User' Some of his stuff won't run...
I have a large collection of car photos spanning several years and growing, +300,000. I am now trying to combine them by year of make. There are many files with the same name like "1930 CarMakerName." I cannot take the time to review every conflict at transfer time, much quicker and easier to...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook