Post new topic Reply to topic  [ 2 posts ] 

Board index : TeleFlow Forums : TeleFlow Designer & Simulator

Author Message
 Post subject:
PostPosted: Tue May 18, 2004 4:59 pm 
Offline

Joined: Tue Apr 20, 2004 11:43 am
Posts: 6
Location: Canada
Is there any way to find out if a file exists in Teleflow? Forgive me if it exists in 2004 as I haven't looked at that yet. I want to check to see if a wave file exists before I try and play it. Right now, the system just crashes if the specified wave file does not exist.


Back to top
 Profile  
 
 Post subject:
PostPosted: Tue May 18, 2004 5:13 pm 
Offline

Joined: Wed Mar 19, 2003 4:28 pm
Posts: 510
Location: Canada
You have 2 options to handle this: <br> <br>1) Locate a file: Use the "Scan Folder" step. Scan the directory (eg. 'C:\Vmail') you expect to locate the file in. Set the 'file mask' to the actual filename you are going to attempt to play (eg. 'MyFile.wav'), and set a variable to receive directory count. (eg. '@DIR_COUNT'). The step should succeed, unless the directory doesn't exist, for example, and return a count to @DIR_COUNT of 1 if the file exists, or 0 otherwise. Use a Compare step to determine the count. <br> <br>2) The Play step has a hidden action step on it that you can use set the path (referred to as the 'bomb' or FAIL path) to follow if a problem arises when TeleFlow tries to play the file specified. Right-click the step, and select the "unhide action steps" option. (This is not visible by default, because it is only seldom used) Send the flow from the fail/bomb step to whatever handling you wish to have in the case of a failed play.


Back to top
 Profile WWW 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Board index : TeleFlow Forums : TeleFlow Designer & Simulator


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 post attachments in this forum

Search for:
Jump to:  
cron
Style by Midnight Phoenix & N.Design Studio
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.