Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Batch to apend Folder name to filenames
Name: spinway40 Date: May 13, 2009 at 06:03:38 Pacific OS: Windows Vista Subcategory: Batch
Comment:
Can anyone point me to a DOS batch that will append the folder name to all files within that directory:
ie: c:\12345 contains 60 files and I want the file names to read 1234511111.1, 1234511115.1, etc...
Name: Shaka Date: May 14, 2009 at 14:59:50 Pacific
Reply:
You should save this in a different folder, or change (*) to (.txt) or whatever you are renaming. If you do put this batch in the same folder ie c\12345 you can loose the pushd.
@echo off cls pushd c:\12345 for %%a in (.) do set dir=%%~nxa for %%a in (*) do call :name "%%~a" goto :eof
Summary: thanks for all the responses, unfoutunately there are other folders contained in the directory. When i run this script it deletes folders by creation date. Is there a way to specify it to read folde...
Summary: I have a folder with a few hundred PDF files and would like to sort them to various other folders according to selected words in each PDF title. The unsorted PDF folder is C:\PDF The destination fold...
Summary: Hi again folks! I am looking for a batch file to be able to return folder name(s) within a given location. I have a static location (C:\MyFolder\Mysub1\Mysub2\base_v6\profiles\default\installedApps) W...