Computing.Net > Forums > Disk Operating System > copy a file in multiple directorie

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.

copy a file in multiple directorie

Reply to Message Icon

Name: Shaun
Date: October 23, 2003 at 05:23:06 Pacific
OS: Windows XP Pro
CPU/Ram: 1800XP / 256 DDR
Comment:

Hi,

I think I need to create some kind of batch file to do this - copy and xcopy don't seem to have the functionality.

I have a file that I want to put in 100 subdirectories (I will need to do this on a regular basis). If the file already exists I want it to overwrite and, obviously I want it to do this all without user confirmation.

Does anybody know the easiest way this can be done?

Thanks

Shaun




Sponsored Link
Ads by Google

Response Number 1
Name: Rambler
Date: October 23, 2003 at 07:56:55 Pacific
Reply:

How about

For /R E:\USERS %%I IN (.) DO COPY /y C:\PROFILES\sample.pro "%%I\sample.pro"

which copies sample.pro to all subfolders of E:\USERS

The quotes are to accomodate long subfoldernames.


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 Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: copy a file in multiple directorie

COPY file to multiple directories www.computing.net/answers/dos/copy-file-to-multiple-directories/14518.html

Copying a File to Multiple Disks www.computing.net/answers/dos/copying-a-file-to-multiple-disks/4355.html

help!! I need delete a file in sev www.computing.net/answers/dos/help-i-need-delete-a-file-in-sev/11303.html