PC Review


Reply
Thread Tools Rate Thread

copying folders in dos

 
 
sabbathnut
Guest
Posts: n/a
 
      28th Mar 2007
i need to copy one directory into another as a batch file, i cant seem
to get the syntax correct, to enable me to create a batch file for
this process

the directory is p:\preactor HF

and i want to make a copy of this folder and call p:\pbackup

 
Reply With Quote
 
 
 
 
Tim Slattery
Guest
Posts: n/a
 
      28th Mar 2007
"sabbathnut" <(E-Mail Removed)> wrote:

>i need to copy one directory into another as a batch file, i cant seem
>to get the syntax correct, to enable me to create a batch file for
>this process
>
>the directory is p:\preactor HF
>
>and i want to make a copy of this folder and call p:\pbackup



xcopy "p:\preactor HF" p:\backup /r/i/c/h/k/e/y

Open a command console (it's not DOS) and type:

xcopy /?

for an explanation of all the flags

--
Tim Slattery
MS MVP(DTS)
(E-Mail Removed)
http://members.cox.net/slatteryt
 
Reply With Quote
 
John John
Guest
Posts: n/a
 
      28th Mar 2007
Use quotation marks if there are spaces in the path, "p:\preactor HF"

John


sabbathnut wrote:

> i need to copy one directory into another as a batch file, i cant seem
> to get the syntax correct, to enable me to create a batch file for
> this process
>
> the directory is p:\preactor HF
>
> and i want to make a copy of this folder and call p:\pbackup
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copying folders Jim Madsen Microsoft VB .NET 22 20th May 2009 02:00 AM
Copying Folders chickalina Windows XP Customization 2 20th Jan 2009 05:50 PM
Copying folders =?Utf-8?B?bWF1cmljaW9mZg==?= Windows XP General 5 14th Jun 2006 10:38 PM
Copying folders Mike Microsoft Windows 2000 Networking 0 30th Mar 2004 07:46 PM
Auto-expand nested/sub-folders not working in Outlook 2003 when copying/moving messages to folders? =?Utf-8?B?SmFzb24=?= Microsoft Outlook 0 27th Feb 2004 12:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:26 AM.