For information about Globalscape, visit www.globalscape.com. |
You can execute a script you create in Windows, from the command line, from within CuteFTP's interface, or as a scheduled task to be run with no user logged in.
To execute a script directly in windows
Launch CuteFTP Professional.
On the main menu, click Tools > Macros & Scripting > Run.
Browse for the script file you created. For example, sample.vbs.
Click Open to launch the script.
The log and queue view in CuteFTP populates with session and transfer information.
When creating your VB scripts, remember that in VB, you aren't checking to see if the returned value is the string "True" or "False"; you're checking for the *value* True (i.e., -1) or False (i.e., 0). So, the values should *not* be quoted. The rule is, with quotes, it's a string. |
To execute a script from the command line
On the Windows task bar, click Start > Run.
In the Run dialog box, type CMD, then press ENTER.
Navigate to the location of the script file.
Type the name of the file, then press ENTER.
TE launches (the TE icon display in the system tray) and executes your script.
To execute a script directly in Windows
In Windows Explorer, navigate to the location of the script file.
Double click the script file
TE launches (the TE icon displays in the system tray) and executes your script.