Computing.Net > Forums > Windows XP > For loop to organize files in folders

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

For loop to organize files in folders

Reply to Message Icon

Name: AJ (by William Jimenez)
Date: August 4, 2009 at 13:03:53 Pacific
OS: Windows XP
CPU/Ram: Intel Dual Core
Subcategory: General
Comment:

Hello,

I have a problem that I my limited knowledge of command line can't solve.

I need to create a batch file that will do the following.

In directoy X:\Files, I have say 100 pdf files all named ########-xxx.pdf

In a separate directoy X:\Folders I have 100 folders matching the first 8 characters of the pdf file name (########).

What I need is for the script to do read the name of each pdf file, then take the first 8 characters of the PDF file and then move it to the folder that matches those 8 characters.

Thank you so much.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Installing XP from Flash ... Batch file to copy and re...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: For loop to organize files in folders

batch file to find files in folder www.computing.net/answers/windows-xp/batch-file-to-find-files-in-folder/175316.html

Unable to delete files, folders www.computing.net/answers/windows-xp/unable-to-delete-files-folders/75740.html

cant access files in folder www.computing.net/answers/windows-xp/cant-access-files-in-folder/89187.html