Pages: 1
RSS
Files disappear after being sent
 
I was kindly provided excellent help when I previously asked how to move a file from one folder to another, after it had been sent, using the Sorting?office Filter feature.

It worked great on my PC, but when I installed theBat! on a Windows 2003 Server and tried the same Filtering, the files don't move from one folder to another, they simple are deleted from the Folder.

In Sorting/Office Filters I created an Outgoing Mail Filter with the action Export Message to File:

C:\Documents and Settings\Desktop\Folder\move.bat
and set up a blank move.bat file in the Folder.

And under Sorting>Action>Template added:
copy "C:\Documents and Settings\Desktop\Folder\SubFolder\%Attachments"
"C:\Documents and Settings\Desktop\Folder\Sent"
del "C:\Documents and Settings\Desktop\Folder\SubFolder\%Attachments"

Additionally the Sorting/Office Filter has a 2nd Action, called Run External Action which shows this in the command line:
C:\Documents and Settings\Desktop\Folder\move.bat

So the files in the SubFolder, after being sent, would be moved to a folder named Sent.

What appears to happen now, is that the files are sent and no longer appear in the SubFolder. But they are apparently are not moved to the Sent folder, because after sending, both the SubFolder and the Sent folder are empty.

I am wondering where do the files go to? And I am also hoping someone can help me fix this so that the files move from SubFolder to Sent folder, as they did successfully on my PC.

I have re-created this several times, typed all parts into the Sorting/Office Filter and ran it again, with the same 'disappearing files' result.

Can you help me so that these actions move files from SubFolder to the Sent folder? Or tell me where these files have gone to?

Thank you.




 
As the files are being deleted, I presume that the current path to the source folder is correct, therefore I think you're mistaken about the path of the target folder.
You wouldn't want to copy it to "C:\Documents and Settings\Desktop\Folder\S­ubFolder\Sent" in stead of "C:\Documents and Settings\Desktop\Folder\Sent" ?
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
I tried what I thought you suggested, but it didn't move the files, it just removed the files in the Source Folder.

So, to use your terminology, would this be correct?

copy "C:\Documents and Settings\Desktop\MainFolder\SourceFolder\%Attachments"

"C:\Documents and Settings\Desktop\MainFolder\TargetFolder\"

del "C:\Documents and Settings\Desktop\MainFolder\SourceFolder\%Attachments"

Thanks again for your help. I look forward to your reply.  
 
Yes, should work if your targetfolder exists.
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
Thanks for your reply.

My Target Folder exists, but the files still are removed from the Source Folder, and do not show up in the Target Folder.

If you have any ideas of what I could check to remedy this, or tell me where these deleted files are, I would greatly appreciate any additional assistance.
 
If someone would be so kind as to take a fresh look at this, and re-consider my question regarding why Files are moved from Source Folder to Target Folder when theBat! runs on my PC but not on a Windows server. Thank you.
 
Set the paths at the server identical to the one on your pc, it should work then.
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
Pages: 1