 |
hiteksoftware.com User discussion forum
|
| View previous topic :: View next topic |
| Author |
Message |
rnewberger
Joined: 11 Feb 2007 Posts: 5
|
Posted: Sun Feb 11, 2007 1:31 pm Post subject: Best way to step on action |
|
|
Just wondering before I go through allot of trial what the best way to chain events and move on depending on result.
Here is process I have in simple terms..
1. check is file exist if so then Copy to a backup directory.
2. email files.
3. Delete files.
what I need it to do is check if file is there, if yes then copy and continue. If the file is not there then stop and exit untill next run time.
wouldnt want to get blank emails all the time so this would be the way to do it.
thanks for any help. |
|
| Back to top |
|
 |
melvin Site Admin
Joined: 25 May 2006 Posts: 595 Location: Santa Barbara, california
|
Posted: Sun Feb 11, 2007 10:40 pm Post subject: |
|
|
Use the following in a chain:
Step 1:
File Monitor task
Task title = filemon
directory = c:\test
set Option: if exit code > -1, go to step 100 (exit chain)
note: if file is found, exit code = -100
Step 2:
Copy task
Filename = $%filemon::Filenames%$
source dir = c:\test
target dir = c:\backup
If exit code > 0 , go to step 100
Step 3:
Email task
Attachment field: [DIR]c:\test[FILE]$%filemon::Filenames%$
if exit code >0 , go to step 100
Step 4:
delete task
source dir = c:\test
filename = $%filemon::Filenames%$ |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|