Computing.Net > Forums > Programming > Move files to one folder

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.

Move files to one folder

Reply to Message Icon

Name: milestones
Date: May 5, 2006 at 12:26:06 Pacific
OS: WIN XP
CPU/Ram: 512
Product: DELL
Comment:

Here is what I am trying to do:
Algorithym

cd c:\Folder1
Dir.. > folderlist.txt (list of sub folders)
cd c:\Folder1
cd c:\Folder1\subfolder (for the list in txt file)
copy *.* c:\targetFolder
Do this for all the folderlist




Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: May 5, 2006 at 17:01:02 Pacific
Reply:

@echo off
for /f %%D in ('dir \temp/b/s/ad') do echo copy %%D x:\mystuff


If at first you don't succeed, you're about average.

M2


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Move files to one folder

Moving files from one folder to diffrent www.computing.net/answers/programming/moving-files-from-one-folder-to-diffrent/18858.html

Move file to new folder namefile www.computing.net/answers/programming/move-file-to-new-folder-namefile/19056.html

Move files to diff folders based on filename www.computing.net/answers/programming/move-files-to-diff-folders-based-on-filename/19872.html