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,073
    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

Similar Threads
Thread Forum
Deleting the files and directories of an directory
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
General Support
Unable to rename files in Windows 8.1
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...
General Support
Creating directory junctions that keeps existing files.
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...
General Support
cannot rename blocked files not even with Unlocker 1.9.2
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...
General Support
Windows 8.1 Rename PC Popup and Join Domain Script.
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...
Installation & Setup
how create a specific named account under User directory?
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...
User Accounts and Family Safety
Copy files to a folder, how to rename to name(2) like in 7
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...
General Support

Eight Forums Android App Eight Forums IOS App Follow us on Facebook