Computing.Net > Forums > Disk Operating System > Copy 1 file in mulitiple folder

Copy 1 file in mulitiple folder

Reply to Message Icon

Original Message
Name: kiwi_hk
Date: November 4, 2004 at 18:43:06 Pacific
Subject: Copy 1 file in mulitiple folder
OS: Windows 2000Pro
CPU/Ram: 256
Comment:

Hi

I have many files with extension *.tts in the students subfolders eg C:\students\test\brian.tts, c:\students\test2\ken.tts, c:\students\test3\steve.tts and I just want to copy the *.tts file into 1 folder eg(d:\project\). Can some-one help me to create a batch file do this as I have used xcopy but it also copies the subfolders over and copy doesn't seem to find the subfolder files.

Thanks

Ken



Report Offensive Message For Removal

Response Number 1
Name: Mechanix2Go
Date: November 4, 2004 at 19:46:14 Pacific
Subject: Copy 1 file in mulitiple folder
Reply: (edit)

Hi,

First decide whather you're going to use DOS or XP.

M2


Report Offensive Follow Up For Removal

Response Number 2
Name: kiwi_hk
Date: November 4, 2004 at 22:00:32 Pacific
Subject: Copy 1 file in mulitiple folder
Reply: (edit)

Hi

Just going to use Windows 2000/xp to double click on the batch file.

Ken


Report Offensive Follow Up For Removal

Response Number 3
Name: Nigel Spike
Date: November 4, 2004 at 23:56:08 Pacific
Subject: Copy 1 file in mulitiple folder
Reply: (edit)

Use Total Commander from www.ghisler.com.
Search for the files *.tts. Show the results i one panel, copy all from that panel to the destination folder.

HTH
Nigel


Report Offensive Follow Up For Removal

Response Number 4
Name: rogerashley
Date: November 5, 2004 at 00:01:51 Pacific
Subject: Copy 1 file in mulitiple folder
Reply: (edit)

This should not be in this forum or answered here as stated in the Posting Warnings


Report Offensive Follow Up For Removal

Response Number 5
Name: Nigel Spike
Date: November 5, 2004 at 00:17:27 Pacific
Subject: Copy 1 file in mulitiple folder
Reply: (edit)

You are right, sorry


Report Offensive Follow Up For Removal


Response Number 6
Name: kiwi_hk
Date: November 5, 2004 at 00:25:13 Pacific
Subject: Copy 1 file in mulitiple folder
Reply: (edit)

Hi

I know I can search it in windows, but I need to do it in a batch file as it's for users with limited knowledge.

Ken


Report Offensive Follow Up For Removal

Response Number 7
Name: rogerashley
Date: November 5, 2004 at 00:32:28 Pacific
Subject: Copy 1 file in mulitiple folder
Reply: (edit)

KEN what you are using is NT Command Prompt, this is not and has never been MSDOS, therefore though some command do have the same name the functionality is different.

Therefore this belongs in the W2K forum


Report Offensive Follow Up For Removal

Response Number 8
Name: Mechanix2Go
Date: November 5, 2004 at 03:09:17 Pacific
Subject: Copy 1 file in mulitiple folder
Reply: (edit)

This should do it.

Note that NO provusuin is made for error checking, name collisions etc

::
c:
cd C:\students
for /d %%F in (t*) do copy %%F\*.tts d:\project\
::

HTH

M2


Report Offensive Follow Up For Removal

Response Number 9
Name: rogerashley
Date: November 5, 2004 at 06:35:28 Pacific
Subject: Copy 1 file in mulitiple folder
Reply: (edit)

Mechanix2Go you are not helping educate posters that NT Command Prompt is different by responding. This is after all called the "DOS FORUM" !!!

Have linked on KEN's new posting in W2K


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Copy 1 file in mulitiple folder

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software