Home
Product Feature Tour
  Beyond FTP
  Beyond Encryption
Features and Benefits
  Beyond FTP Server
  Beyond FTP Client
  Beyond Encryption
  Subscription Service
Product Screen Shots
  Beyond FTP
  Beyond Encryption
Lines of Business
  Government
  Education
  Banking
  Insurance
  Healthcare
Download
  Beyond FTP
  Beyond Encryption
  Current Release
Purchase
Support
Forums
Download White Papers
  Beyond FTP System Overview
  HIPAA Security
News
Customer Success Stories
  RewardsPlus of America
Upgrade Encryption
Give us Feedback
Register your Product
Search this Site
Company Profile
Contact Us
Awards
   

Su Doku Helper by Automated Programming Technologies, Inc.


FREE APT SuDoku Helper


Download the free APT SuDoku Helper to help solve SuDoku's or verify your solved SuDoku is correct.

What is a SuDoku?

   

Beyond FTP Feature Tour

Beyond FTP Script Editor - Define Command

Back to Feature TourBack to Feature Tour Back

The Define command allows you to create new commands that may be used in the script. Defined commands are resolved at Compile time.

Optional Parameters allow you to use meaningful names within the define itself. Otherwise, up to 10 parameters may be indicated within the body of the defined command using the percent “%“ escape character followed by a number from 0 to 9. This is similar to the manner in which BAT file parameters operate.
All Define commands must be terminated with an End_Define command. You may use any command within a define, including other defined commands. The only restriction is that the Define command itself may not appear within a defined command.

A defined command is used simply by including it within colons and providing values for the parameters within the body of the define. Parameters are separated by commas. When the script compiler encounters a command, it first searches it’s list of predefined commands and processes a match accordingly. If the command it not in the predefined list, it next searches the list of defined commands. If the command is found, it processes the body of the define as if it were inserted in the script at that point. The compiler replaces any parameters with the values provided from the parameter list. When the defined command is exhausted, the compiler continues processing the script with the next command.


Example:

:Define: CheckFile (ServerName,FileName)
     :If:
Present {%’ServerName’}%’FileName’
         :Log:
File is present
     :Else:
         :Stop:
     :End_if:
:End_Define:

Back to Feature TourBack to Feature Tour Back

 

Sales:
Sales Toll free: 800-877-8765
International Sales: +01 810-225-0588
Send mail to with questions or comments about this web site.
Copyright © 1999-2007 Automated Programming Technologies, Inc.
Last modified: October 23, 2007