AnsweredAssumed Answered

vrf Copying an Entire Directory (Structure and Contents)

Question asked by VRFuser on Oct 24, 2007
I've used microsoft's robocopy and like it better than xcopy.  You'll have to install it, but is free.  It's good for keeping a directory sync'd with another and only can be configured to only copy the new or changed files rather than each file in the directory.  If you have many files and expect to perform this copy function many times I'd suggest you check it out.

Best regards,
Steve Ortiz


On 10/22/07, Schlieker, Reiner <HYPERLINK "mailto:reiner.schlieker@siemens.com"reiner.schlieker@siemens.com> wrote:

Well, I just found System.IO.Directory.Move(sourceDirName, destDirName); that might work for you.  There's no equivalent copy command though.
 
Reiner

  _____  

From: Kathy Wright [mailto:HYPERLINK "mailto:kathy_wright_ca@yahoo.com"
kathy_wright_ca@yahoo.com]
Sent: Monday, October 22, 2007 4:17 PM
To: VRF
Cc: HYPERLINK "mailto:vrf@agilent.com"
vrf@agilent.com
Subject: Re: [vrf] Copying an Entire Directory (Structure and Contents)



Is there a .NET method that does the same thing?  I've been able to create and remove folders and files, and move/copy files using .NET, but wondered about doing this in one command like xcopy.
 
Kathy Wright


Stan Bischof <HYPERLINK "mailto:rsb@soco.agilent.com"
rsb@soco.agilent.com> wrote:

"Griggs, Jon" wrote:
> Before I reinvent the wheel, does anyone have a solution for copying an
> entire directory (including subdirectories and files) to a second
> location?
>
> This will be across a network to non-mapped drives using UNC pathnames.
>
> I do have permissions to write to the destination directories.
>

perhaps the cleanest/simplest is to use built-in Windows utilities:

an "Execute Program" executing "xcopy" should do the trick

xcopy /? will give you the syntax and options, but for what you
describe, xcopy /E should work fine
from any version of VEE

Stan


--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 HYPERLINK "mailto:stan_bischof@agilent.com"
stan_bischof@agilent.com
--------------------------------------------------------------------------

---
You are currently subscribed to vrf as: HYPERLINK "mailto:kathy_wright_ca@yahoo.com"
kathy_wright_ca@yahoo.com
To subscribe please send an email to: "HYPERLINK "mailto:vrf-request@lists.it.agilent.com"
vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "HYPERLINK "mailto:leave-vrf@it.lists.it.agilent.com"
leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "HYPERLINK "mailto:vrf@agilent.com"
vrf@agilent.com".
If you need help with the mailing list send a message to
"HYPERLINK "mailto:owner-vrf@it.lists.it.agilent.com"
owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".



--- You are currently subscribed to vrf as: HYPERLINK "mailto:reiner.schlieker@siemens.com"
reiner.schlieker@siemens.com To subscribe please send an email to: "HYPERLINK "mailto:vrf-request@lists.it.agilent.com"
vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "HYPERLINK "mailto:leave-vrf@it.lists.it.agilent.com"
leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "HYPERLINK "mailto:vrf@agilent.com"
vrf@agilent.com". If you need help with the mailing list send a message to "HYPERLINK "mailto:owner-vrf@it.lists.it.agilent.com"
owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
---
You are currently subscribed to vrf as: HYPERLINK "mailto:ortiz.steve@gmail.com"
ortiz.steve@gmail.com
To subscribe please send an email to: "HYPERLINK "mailto:vrf-request@lists.it.agilent.com"
vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "HYPERLINK "mailto:leave-vrf@it.lists.it.agilent.com"
leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "HYPERLINK "mailto:vrf@agilent.com"
vrf@agilent.com".
If you need help with the mailing list send a message to
"HYPERLINK "mailto:owner-vrf@it.lists.it.agilent.com"
owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".


--- You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com".  

Outcomes