How to keep a script running and window up

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
timle
Pro Scripter
Posts: 96
Joined: Tue Apr 20, 2004 5:53 am

How to keep a script running and window up

Post by timle » Fri Jan 09, 2009 12:36 am

I want to monitor a folder, how can I keep this window up and stop when I click ok

thanks

Label>begin
Let>dir1=D:\Testing\Holding_Folder
Let>GFL_TYPE=0
Label>checkforfile
GetFileList>%dir1%\*.*,files
Separate>files,;,file_names
Message>Num Files: %file_names_count%
wait>2
Press Enter
goto>begin

Aaron
Pro Scripter
Posts: 113
Joined: Mon Apr 09, 2007 1:35 am
Location: Wyoming

Post by Aaron » Fri Jan 09, 2009 1:23 am

if you are just monitoring the folder waiting for a file.

create your new script, click on the tab that says trigger.
Make trigger type: Folder event
Make trigger: New file in folder.
Make folder path: Path to the folder that the new file will be created in.

Now when ever there is a new file in that folder your script will run and do whatever it is you want done.

If this is not what you had in mind, please elaberate.
Aaron

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts