完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用过microsoft的robocopy,比xcopy更喜欢它。
你必须安装它,但是免费的。 保持目录与另一个目录同步是很好的,并且只能配置为仅复制新文件或更改的文件而不是目录中的每个文件。 如果你有很多文件,并希望多次执行此复制功能,我建议你检查一下。 最好的问候,Steve OrtizOn 10/22/07,Schlieker,Reiner写道:好吧,我刚刚找到了System.IO.Directory.Move(sourceDirName,destDirName); 那可能为你工作。 虽然没有等效的复制命令.Reiner _____来自:Kathy Wright [mailto:HYPERLINK“mailto:kathy_wright_ca@yahoo.com”kathy_wright_ca@yahoo.com]发送时间:2007年10月22日星期一下午4:17T:VRFCc:HYPERLINK“mailto :vrf@agilent.com“vrf@agilent.comSubject:Re:[vrf]复制整个目录(结构和内容)是否有一种.NET方法可以做同样的事情? 我已经能够创建和删除文件夹和文件,并使用.NET移动/复制文件,但想知道在一个命令中执行此操作,如xcopy.Kathy WrightStan Bischof写道:“Griggs,Jon”写道:>在我重新发明之前 任何人有没有解决方案将>整个目录(包括子目录和文件)复制到第二个>位置?>>这将使用UNC路径名通过网络到非映射驱动器。>>我有权写 到目的地目录。>也许最干净/最简单的是使用内置的Windows实用程序:执行“xcopy”的“执行程序”应该执行trickxcopy /? 将为您提供语法和选项,但对于您所描述的内容,xcopy / E应该可以在任何版本的VEEStan中正常工作--------------------------- ----------------------------------------------- Stan Bischof安捷伦 技术707-577-3994 HYPERLINK“mailto:stan_bischof@agilent.com”stan_bischof@agilent.com----------------------------- - - - - - - - - - - - - - - - - - - - - - - - - -你是 目前订阅vrf为:HYPERLINK“mailto:kathy_wright_ca@yahoo.com”kathy_wright_ca@yahoo.com要订阅,请发送电子邮件至:“HYPERLINK”mailto:vrf-request@lists.it.agilent.com“vrf-request @ lists .it.agilent.com“在邮件正文中使用订阅单词。要取消订阅,请发送一封空白电子邮件至”HYPERLINK“mailto:leave-vrf@it.lists.it.agilent.com”leave-vrf@it.lists。 it.agilent.com“。要发送邮件到这个邮件列表,请发送电子邮件至”HYPERLINK“mailto:vrf@agilent.com”vrf@agilent.com“。 如果您需要有关邮件列表的帮助,请发送邮件至“HYPERLINK”mailto:owner-vrf@it.lists.it.agilent.com“owner-vrf@it.lists.it.agilent.com”。搜索“非官方” vrf archive“at”http://www.vrfarchive.com/vrf_archive"。在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档.---您目前订阅了vrf:HYPERLINK “mailto:reiner.schlieker@siemens.com”reiner.schlieker@siemens.com如需订阅,请发送电子邮件至:“HYPERLINK”mailto:vrf-request@lists.it.agilent.com“vrf-request@lists.it .agilent.com“在邮件正文中使用了subscribe这个词。 要取消订阅,请发送一封空白电子邮件至“HYPERLINK”mailto:leave-vrf@it.lists.it.agilent.com“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“HYPERLINK”mailto:vrf@agilent.com“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“HYPERLINK”mailto:owner-vrf@it.lists.it.agilent.com“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档.---您目前订阅了vrf:HYPERLINK“mailto:ortiz.steve@gmail.com”ortiz.steve@gmail.com 如需订阅,请发送电子邮件至:“HYPERLINK”mailto:vrf-request@lists.it.agilent.com“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“HYPERLINK”mailto:leave-vrf@it.lists.it.agilent.com“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“HYPERLINK”mailto:vrf@agilent.com“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“HYPERLINK”mailto:owner-vrf@it.lists.it.agilent.com“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 ---您目前订阅了vrf:ming_meng@agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 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 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 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". |
|
相关推荐
5个回答
|
|
在我重新发明轮子之前,有没有人有解决方案将整个目录(包括子目录和文件)复制到第二个位置?这将使用UNC路径名通过网络到非映射驱动器。我有权写入
目的地目录。我也在使用VEE 8.01.Thanks,Jon Griggs mailto:jgriggs@crownintl.com测试工程师Crown International 1718 West Mishawaka Road Elkhart,IN 46517 ---您目前订阅了vrf:ming_meng@agilent.com 要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 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. I’m also using VEE 8.01. Thanks, Jon Griggs mailto:jgriggs@crownintl.com Test Engineer Crown International 1718 West Mishawaka Road Elkhart, IN 46517 --- 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". |
|
|
|
“Griggs,Jon”写道:>在重新发明轮子之前,有没有人有解决方案将整个目录(包括子目录和文件)复制到第二个>位置?>>这将通过网络连接到非映射驱动器
使用UNC路径名。>>我有权写入目标目录。>最干净/最简单的方法是使用内置的Windows实用程序:执行“xcopy”的“执行程序”应该使用xcopy /? 将为您提供语法和选项,但对于您所描述的内容,xcopy / E应该可以在任何版本的VEEStan中正常工作--------------------------- ----------------------------------------------- Stan Bischof安捷伦 Technologies 707-577-3994 stan_bischof@agilent.com--------------------------------------- --------------------------------------您目前订阅的是vrf:ming_meng @ agilent。 com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。要取消订阅,请发送空白电子邮件至“leave-vrf@it.lists.it.agilent .com“。要发送邮件到这个邮件列表,请发送电子邮件至”vrf@agilent.com“。 如果您需要在邮件列表中帮助将消息发送到“owner-vrf@it.lists.it.agilent.com” .Search“非官方VRF档案”在“http://www.vrfarchive.com/vrf_archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 "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 stan_bischof@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". |
|
|
|
是否有一个.NET方法做同样的事情?
我已经能够创建和删除文件夹和文件,并使用.NET移动/复制文件,但想知道在一个命令中执行此操作,如xcopy.Kathy WrightStan Bischof写道:“Griggs,Jon”写道:>在我重新发明之前 任何人有没有解决方案将>整个目录(包括子目录和文件)复制到第二个>位置?>>这将使用UNC路径名通过网络到非映射驱动器。>>我有权写 到目的地目录。>也许最干净/最简单的是使用内置的Windows实用程序:执行“xcopy”的“执行程序”应该执行trickxcopy /? 将为您提供语法和选项,但对于您所描述的内容,xcopy / E应该可以在任何版本的VEEStan中正常工作--------------------------- ----------------------------------------------- Stan Bischof安捷伦 Technologies 707-577-3994 stan_bischof@agilent.com--------------------------------------- --------------------------------------您目前订阅的是vrf:kathy_wright_ca @ yahoo。 如需订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含“subscribe”字样。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent”。 com。“要发送邮件到这个邮件列表,请发送电子邮件至”vrf@agilent.com“。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“http://www.vrfarchive.com/vrf_archive”上搜索“非官方vrf档案”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档.---您目前订阅了vrf:ming_meng@agilent.com要订阅,请发送电子邮件至:“vrf-request @ lists .it.agilent.com“在邮件正文中使用了subscribe这个词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 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 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 stan_bischof@agilent.com -------------------------------------------------------------------------- --- You are currently subscribed to vrf as: kathy_wright_ca@yahoo.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". --- 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". |
|
|
|
谢谢Stan.I忘了xcopy会接受UNC路径名。对于那些尝试的人,请检查相应标志的帮助。我需要设置以下内容来抑制等待响应的问题:“/ e / i / r / y”谢谢
,Jon Griggsmailto:jgriggs@crownintl.com测试工程师国际1718 West Mishawaka RoadElkhart,IN 46517 -----原始消息-----来自:Stan Bischof(Richard S)[mailto:r***@soco.agilent.com]发送: 2007年10月22日星期一下午3点44分:VRFCc:vrf@agilent.com主题:Re:[vrf]复制整个目录(结构和内容)“Griggs,Jon”写道:>在我重新发明轮子之前,有没有人有 复制>整个目录(包括子目录和文件)到第二个>位置的解决方案?>>这将使用UNCpathnames通过网络到非映射驱动器。>我有权写入目标目录。>也许 最干净/最简单的是使用内置的Windows实用程序:执行“xcopy”的“执行程序”应该执行xcopy操作 /? 将为您提供语法和选项,但对于您所描述的内容,xcopy / E应该可以在任何版本的VEEStan中正常工作--------------------------- ----------------------------------------------- Stan Bischof安捷伦 Technologies 707-577-3994 stan_bischof@agilent.com--------------------------------------- --------------------------------------您目前订阅了vrf:JGriggs @ crownintl。 com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。要取消订阅,请发送空白电子邮件至“leave-vrf@it.lists.it.agilent .com“。要发送邮件到这个邮件列表,请发送电子邮件至”vrf@agilent.com“。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“http://www.vrfarchive.com/vrf_archive”上搜索“非官方vrf档案”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档.---您目前订阅了vrf:ming_meng@agilent.com要订阅,请发送电子邮件至:“vrf-request @ lists .it.agilent.com“在邮件正文中单词subscribe。要取消订阅,请发送一封空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要向此邮件列表发送邮件,请发送电子邮件至”vrf“ @ agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“http://www.vrfarchive.com/vrf_archive”上搜索“非官方vrf档案”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 Thanks Stan. I forgot that xcopy would accept UNC pathnames. For those of you trying, check the help for the appropriate flags. I needed to set the following to suppress questions that wait for responses: "/e /i /r /y" Thanks, Jon Griggs mailto:jgriggs@crownintl.com Test Engineer Crown International 1718 West Mishawaka Road Elkhart, IN 46517 -----Original Message----- From: Stan Bischof (Richard S) [mailto:r***@soco.agilent.com] Sent: Monday, October 22, 2007 3:44 PM To: VRF Cc: vrf@agilent.com Subject: Re: [vrf] Copying an Entire Directory (Structure and Contents) "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 stan_bischof@agilent.com ------------------------------------------------------------------------ -- --- You are currently subscribed to vrf as: JGriggs@crownintl.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". --- 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". |
|
|
|
好吧,我刚刚找到了System.IO.Directory.Move(sourceDirName,destDirName);
那可能为你工作。 有没有相当的复制命令though.Reiner _____来源:凯西·赖特[邮寄地址:kathy_wright_ca@yahoo.com]发送时间:星期一,2007年10月22日4:17 PMTO:VRFCC:vrf@agilent.comSubject:回复:[VRF]复制的 整个目录(结构和内容)是否有一个.NET方法做同样的事情? 我已经能够创建和删除文件夹和文件,并使用.NET移动/复制文件,但想知道在一个命令中执行此操作,如xcopy.Kathy WrightStan Bischof写道:“Griggs,Jon”写道:>在我重新发明之前 任何人有没有解决方案将>整个目录(包括子目录和文件)复制到第二个>位置?>>这将使用UNC路径名通过网络到非映射驱动器。>>我有权写 到目的地目录。>也许最干净/最简单的是使用内置的Windows实用程序:执行“xcopy”的“执行程序”应该执行trickxcopy /? 将为您提供语法和选项,但对于您所描述的内容,xcopy / E应该可以在任何版本的VEEStan中正常工作--------------------------- ----------------------------------------------- Stan Bischof安捷伦 Technologies 707-577-3994 stan_bischof@agilent.com--------------------------------------- --------------------------------------您目前订阅的是vrf:kathy_wright_ca @ yahoo。 如需订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含“subscribe”字样。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent”。 com。“要发送邮件到这个邮件列表,请发送电子邮件至”vrf@agilent.com“。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“http://www.vrfarchive.com/vrf_archive”上搜索“非官方vrf档案”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档.---您目前订阅了vrf:reiner.schlieker@siemens.com要订阅,请发送电子邮件至:“vrf-request @ lists.it.agilent.com“在邮件正文中使用了subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档.---您目前订阅了vrf:ming_meng@agilent.com要订阅,请发送电子邮件至:“vrf-request @ lists .it.agilent.com“在邮件正文中使用了subscribe这个词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 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:kathy_wright_ca@yahoo.com] Sent: Monday, October 22, 2007 4:17 PM To: VRF Cc: 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 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 stan_bischof@agilent.com -------------------------------------------------------------------------- --- You are currently subscribed to vrf as: kathy_wright_ca@yahoo.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". --- You are currently subscribed to vrf as: reiner.schlieker@siemens.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". --- 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". |
|
|
|
只有小组成员才能发言,加入小组>>
1221 浏览 0 评论
2346 浏览 1 评论
2155 浏览 1 评论
2021 浏览 5 评论
2900 浏览 3 评论
961浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
697浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
797浏览 0评论
1221浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 08:11 , Processed in 1.574168 second(s), Total 86, Slave 69 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号