Jump to content
Macro Express Forums
Cory

Can't Move Files

Recommended Posts

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?

Share this post


Link to post
Share on other sites

I'll give that a try. I still think I must have somethign wrong. Can you just move a whole folder w/o wildcards?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Ha ha. Our messages passed in cyberspace!

Share this post


Link to post
Share on other sites

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.

post-2-1119966876_thumb.jpg

Share this post


Link to post
Share on other sites

Geez, I feel stupid. I tried toyr suggestion and it worked fine! I would have sworn I tried that but... Many thanks!

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...