Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Seeks help on Xcopy muahaah

Status
Not open for further replies.

Havek

Technical User
Oct 10, 2003
2
US
Hi ther friendly geek here. I have used xcopy and im fairly familar with dos commands, but for some reason I cant get xcopy or a batch file to really do what I want. Here is what I want to do. I want to copy the all my *.tif files from a dir that has subfolders. Sounds easy aye??? Also I just want to copy the files not the subfolders..

IE

Xcopy c:\mytif*.tif /s e:\ ( currently copies subfolders )

In the folder mytif I have X amounts of sub folder over 4,000 tifs. I could use the search function on 2000,,but when I do and hit copy or cut PC here at work goes slower than dirt..

Thanks for the help in advance

Geek @ large = )
 
Try this:

for /R c:\mytif %%G in (*.tif) DO xcopy "%%G" e:\ /y

Caution: The /y parameter does an automatic overwrite so if you have duplicate filenames the last file copied wins.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top