Cory Posted June 28, 2005 Report Share Posted June 28, 2005 When I use ME to move an entire folder over the network it gets to the end and bombs out complaining that it can't find a file. When I look in that folder it has already moved all the files. What am I doing wrong? <DOFILE:07:YY:\\ip1\ipdata\clients\%T4%\*.*>\\ip1\ipdata\archive\clients\%T4%\> Also how do i simply move a folder? Quote Link to comment Share on other sites More sharing options...
randallc Posted June 28, 2005 Report Share Posted June 28, 2005 Hi Cory; I don't know! Work-around is to copy the folder, then delete; does that give same error? Randall Quote Link to comment Share on other sites More sharing options...
Cory Posted June 28, 2005 Author Report Share Posted June 28, 2005 I'll give that a try. I still think I must have somethign wrong. Can you just move a whole folder w/o wildcards? Quote Link to comment Share on other sites More sharing options...
randallc Posted June 28, 2005 Report Share Posted June 28, 2005 Hi, not sure; does "Rename folder work? Else here is syntax for dos using wilcards; probably works for folder? <LAUNCHDEL2:0:01cmd.exe<PARAM>/c move "\\ip1\ipdata\clients\%T4%\*.*" "\\ip1\ipdata\archive\clients\%T4%\"3> Randall Quote Link to comment Share on other sites More sharing options...
Cory Posted June 28, 2005 Author Report Share Posted June 28, 2005 I tried copy then del and that works. But you're a genious on the other suggestion! Originally the source was on a different volume but last weekend I swapped some of the drives around and now they are on the same. Rename would be the proper way, it just escaped me! Thanks! Quote Link to comment Share on other sites More sharing options...
randallc Posted June 28, 2005 Report Share Posted June 28, 2005 Actually, "Rename" gives me a message that "can't change if folders different", so would not work for you? Randall Quote Link to comment Share on other sites More sharing options...
Cory Posted June 28, 2005 Author Report Share Posted June 28, 2005 Dang. I thought one could rename a folder if it was on the same volume but it complains that I can not rename the folder if it is on a different folder or disk. <DOFILE:03:NN:\\ip1\ipdata\clients\%T4%\>\\ip1\ipdata\archive\clients\%T4%\> I guess it's back to copy and delete. It's no big deal but it just seems kinda stupid to have to do it this way. Quote Link to comment Share on other sites More sharing options...
Cory Posted June 28, 2005 Author Report Share Posted June 28, 2005 Ha ha. Our messages passed in cyberspace! Quote Link to comment Share on other sites More sharing options...
joe Posted June 28, 2005 Report Share Posted June 28, 2005 Folders, and all of their contents, can be moved by simply entering the source into the Files(s) Path/Name field and the destination into the New Path field. See attached picture. Quote Link to comment Share on other sites More sharing options...
Cory Posted June 28, 2005 Author Report Share Posted June 28, 2005 Geez, I feel stupid. I tried toyr suggestion and it worked fine! I would have sworn I tried that but... Many thanks! Quote Link to comment Share on other sites More sharing options...
Cory Posted June 28, 2005 Author Report Share Posted June 28, 2005 Joe, I tried your suggestion but now have another problem. I have subdirectories and it wouldn't move them unless I checked the recurse option. Then if the recurse option is checked it moves all the files and then complains that it can't move folder X. Folder X is the first folder in the parent folder aplhabetically which in NTFS means it's the last to me acted on. After the error if one opens the source folder you will find it empty, IOW it worked, and folder X was moved! Arggggg.... I don't know if it's a bug in ME or what. I think move is doing a copy and delete which is silly since we are duplicating the data which takes time. One should just be able to rename the folder but the scripting editor complains that it isn't supported since the destination folder is different. I was told onc as long as it was on the same volume one should be able to rename but it wont let me. What am I doing wrong here? Quote Link to comment Share on other sites More sharing options...
joe Posted June 28, 2005 Report Share Posted June 28, 2005 Checking the Recursive checkbox is fine. I do it when I want to move contents of sub-folders. I have done this without error when moving within the same partition, different drives on the same workstation, and also across networks. Is this an active folder? Are others writing to it while you are moving the files? Try "moving off" of the folder you are wanting to move before moving it. In other words, use the Change Directory/Folder command to log in to a different folder then move it. As to renaming or copying and deleting: If you are moving folders within the same partition on the same hard drive, then Windows will probably just do some internal renaming. On the other hand, if you are moving folders between partitions, hard drives, or over a network then Windows will do a copy and delete. Quote Link to comment Share on other sites More sharing options...
Cory Posted June 29, 2005 Author Report Share Posted June 29, 2005 The folder is not active. I can manually move or delete the folder with no problem. Prior to the move there is no activity going on in there and the 'current' folder is elsewhere. I think it's a bug. The one thing that could be causing a problem is that the network is slow today so maybe it's atiming issue with ME. I've used this move before and it worked OK but every time I try to do it with one of these client folder it baulks and I find it's empty. I agree that when you move a folder or file in Windows it just changes the directory listings and doesn't copy/delete as long as it's on the same volume. However I think that ME does the copy/delete thing when you use the move command without respect to whether it's on the same volume or not. I wish it didn't do this but it still works OK. Just seems dumb and it takes extra time. Thanks for the help. Quote Link to comment Share on other sites More sharing options...
Cory Posted June 29, 2005 Author Report Share Posted June 29, 2005 Here's somethign i don't understand. Why is it I can rename a file to a different location on the same volume but I can't rename a folder? Quote Link to comment Share on other sites More sharing options...
joe Posted June 29, 2005 Report Share Posted June 29, 2005 Here's somethign i don't understand. Why is it I can rename a file to a different location on the same volume but I can't rename a folder? Have you tried the Rename Folder command? Quote Link to comment Share on other sites More sharing options...
Cory Posted June 29, 2005 Author Report Share Posted June 29, 2005 Dang. I thought one could rename a folder if it was on the same volume but it complains that I can not rename the folder if it is on a different folder or disk. <DOFILE:03:NN:\\ip1\ipdata\clients\%T4%\>\\ip1\ipdata\archive\clients\%T4%\> I guess it's back to copy and delete. It's no big deal but it just seems kinda stupid to have to do it this way. Yeah Randall and i both thougth of this but it doesn't work either. Here's my previous post. maybe I have the syntax wrong or someting, can you get it to work? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.