Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-04-2004, 02:07 PM   #1
Member (11 bit)
 
Blue_Gundam2002's Avatar
 
Join Date: May 2003
Location: Houston, Texas
Posts: 1,340
Send a message via AIM to Blue_Gundam2002 Send a message via Yahoo to Blue_Gundam2002
Batch file help

I'm trying to make a batch file to copy a folder and all of its files and sub-folders, but I can't figure out how to do it since the copy command only copies files. Does anyone know how I can do this?
__________________
Main: ASUS P5k SE/Core 2 Duo E6550/4x1024mb DDR2 800
GeForce 8600 GT 256MB/WD 36.7GB Raptor - WD 320GB x2 - WD - 750GB x2 - WD 640GB

Laptop: Acer Aspire One AOA150
945GSE/Atom N270/1024mb DDR2 533/8.9" WSVGA/120GB HDD/2.3 lbs.

HTPC: Shuttle K48
945GC/Pentium E2180/2x1024mb DDR2 800/80GB HDD/Vizio V37L 37" LCD 1080i


Join us in the pcmech irc channel on undernet #Pcmech.
Blue_Gundam2002 is offline   Reply With Quote
Old 12-04-2004, 02:16 PM   #2
Member (10 bit)
 
mikezel's Avatar
 
Join Date: Dec 2003
Location: Toronto
Posts: 894
Send a message via MSN to mikezel
You are going to want to use the XCOPY command with the /y /e or /s switches. Probably something like this:

Code:
XCOPY [source] [destination] /Y /E
If you don't want to copy empty directories, then replace /E with /S.

heres a helpful link: http://www.robvanderwoude.com/index.html

mike

Last edited by mikezel; 12-04-2004 at 02:33 PM.
mikezel is offline   Reply With Quote
Old 12-04-2004, 02:22 PM   #3
Member (11 bit)
 
Blue_Gundam2002's Avatar
 
Join Date: May 2003
Location: Houston, Texas
Posts: 1,340
Send a message via AIM to Blue_Gundam2002 Send a message via Yahoo to Blue_Gundam2002
works great
Blue_Gundam2002 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:27 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0