11-13-2008 05:11 AM
Hi,
I have search through the forum. And I can't found proper solution, even this is a very simple problem.
I wanted to copy folder
D:\Projects PFA\Codes Dev\Testing\10112008\1606 to
D:\Projects PFA\Codes Dev\Testing\10112008\debug_1606
and I found the "copy" and "move" function tends to copy in this way
D:\Projects PFA\Codes Dev\Testing\10112008\debug_1606\1606
I have attached the vi. Please help.
Solved! Go to Solution.
11-13-2008 06:04 AM
11-13-2008 08:02 PM
11-13-2008 10:18 PM
So I can conclude that to copy all contents in a folder, need to go through some extra stepss
It is not as easy as
copy c:\here\* d:\there
11-14-2008 12:05 AM - edited 11-14-2008 12:05 AM
engwei wrote:So I can conclude that to copy all contents in a folder, ....
Don't "conclude". Read the online help. 🙂
If you want to copy the entire folder, you need to make sure that the new folder name does not exist. Don't create the destination folder, but delete it if it exists (careful! I would keep the confirm dialog).
I would also strongly recommend to use path data type across everything. You constantly go back and forth between string and paths, really complicating the code.
Here's a quick draft that seems to do what you want.
11-14-2008 01:15 AM
altenbach wrote:
Don't "conclude". Read the online help. 🙂
Message Edited by altenbach on 11-13-2008 10:05 PM
Thanks for your help. It really do because I can't find the "online help" u hv mentioned. Even though "copy and rename folder" may sound easy for the expert like you, but for the newbies like me it may not sound as easy as "copy and rename folder".
Thanks again for your time and advise.
11-14-2008 01:41 AM
engwei wrote:Thanks for your help. It really do because I can't find the "online help" u hv mentioned.
Simply right-click the copy icon and select "help". See if it works for you.
You can also find the entire "LabVIEW help" online, here's for example the help for copy.
(I agree you need to read it quite carefully, especially the "details" section at the bottom).
11-14-2008 02:17 AM
01-13-2009 11:21 PM
Hi could you post the CopyAndRenameFolderMOD.vi (11 KB) in version LabView 8.0
01-13-2009 11:36 PM