hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Best way to step on action

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Task Sequences, Chains and Scripts
View previous topic :: View next topic  
Author Message
rnewberger



Joined: 11 Feb 2007
Posts: 5

PostPosted: Sun Feb 11, 2007 1:31 pm    Post subject: Best way to step on action Reply with quote

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
View user's profile Send private message
melvin
Site Admin


Joined: 25 May 2006
Posts: 631
Location: Santa Barbara, california

PostPosted: Sun Feb 11, 2007 10:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Task Sequences, Chains and Scripts All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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