FASTTRACK AUTOMATION STUDIO DEMO SCRIPT




''==== SPLASH ====

Beep

Splash Welcome [UserName],to a demo script

Sleep 5

RemoveSplash

 

''==== MENU INTRO (THE FIRST SHOWMESSAGE PARAMETER IS QUOTED, BECAUSE IT'S STATIC TEXT CONTAINS A COMMA) ====

ShowMessage "Everything you see here is a script of less than 100 scripts lines including comments and blank lines. A message like this for
        instance, is just a single script line: 'ShowMessage <ThisText>'.
[Return][Return]To avoid touching your file system or stressing your
        network, this demo script will only use the fraction of the functionality that relates to user interfaces.
[Return][Return]First step is
        showing a basic menu. Menus can be used to collect a user choice like an application launcher, printer selection or a toolbox. The next
        couple screens will collect some selections and sum them up using the collected variables.",Welcome
to the demo script,Find

SmallSplash Running GUI examples....

 

''==== DOUBLE LIST MENU ====

SetMenuHeaderIcon PC

Set SysInfo = [DoubleListMenu System Information - select one,Hardware,Value,User name,[UserName],Computer name,
         [ComputerName],Computer manufacturer,[Manufacturer],Computer type,[ComputerType],OS Version,[OperatingSystemVersion],
         OS Service Pack,
[OperatingSystemServicePack],OS Service Language,[OperatingSystemLanguage],Windows Install Date,
         [WindowsInstallDate],Boot Time,[BootTime],Memory,[TotalMemory]MB,No Monitors,[NoMonitors],IP Address,[IPAddress],
         Personal files,
[UserPersonalDir],CPU speed,[CpuSpeed]MhZ,CPU Cores,[NoProcessors],Disk size,[DiskSize]GB,
         Free
disk space,[FreeDiskSpace]GB,Screen resolution,[ScreenWidth]x[ScreenHeight]x[ScreenDepth]]

 

''==== LIST MENUS #1 ====

SetMenuHeaderIcon Printer

Set Location=[ListMenuForced Select location,Main Building - Conference Room,Main Building - Sales Office,
         Main
Building - Customer Relations Office,Main Building - IT Developer Office, Main Building - IT Admin Office,
         Plant
Building - 1. Floor,Plant Building - 2. Floor,Plant Building - 3. Floor
]

 

''==== LIST MENUS #2 ====

SetMenuHeaderIcon User

Set Group = [ListMenu Local groups - select one,[AllLocalGroups]]

 

''==== INPUT FUNCTION ====

Set Name = [Input Enter your name]

RemoveSmallSplash

 

''==== PROGRESS EXAMPLE ====

ShowMessage Selected Sysinfo:[Return][Var SysInfo][Return][Return]Selected printer location:[Return][Var Location][Return][Return]
         Selected group:
[Return][Var Group][Return][Return]Entered name:[Return][Var Name][Return][Return]The selected printer location
         could be used to connect printers based on a 'Switch' construct. An example switch construct can be seen at the bottom of this script.
         [
Return][Return]Next step is the progress user interface that can be used to show the user progress information during lengthy
         operations like an installation.
[Return][Return]Click OK to see a progress user interface example. NO ACTUAL SOFTWARE IS
         INSTALLED - fixed sleep intervals are used for the demonstration.,Collected information

Progress 0,Preparing installation of the Acme Corporation software.[Return]NOTHING IS INSTALLED -
         FOR DEMO PURPOSES ONLY.
[Return][Return]Remaining time: Approx. 6 minutes.,Installing Acme Corporation Software

Sleep 4

Progress 20,Installing the Acme Corporation software.[Return]NOTHING IS INSTALLED - FOR DEMO PURPOSES ONLY.[Return][Return]
         Remaining time: Approx. 4 minutes.

Sleep 4

Progress 60,Downloading updates for Acme Corporation software.[Return]NOTHING IS INSTALLED - FOR DEMO PURPOSES ONLY.
         [Return][Return]Remaining time: Approx. 2 minutes.,Installing Acme Corporation Software,Download

Sleep 4

Progress 80,Applying updates for Acme Corporation software.[Return]NOTHING IS INSTALLED - FOR DEMO PURPOSES ONLY.
         [Return][Return]Remaining time: Approx. 1 minute.,Installing Acme Corporation Software,Window

Sleep 4

Progress 100,Cleaning up...

Sleep 3

RemoveProgress

 

''==== SHOW WEB PAGE (THE FIRST SHOWMESSAGE PARAMETER IS QUOTED, BECAUSE IT'S STATIC TEXT CONTAINS A COMMA) ====

ShowMessage "The ShowWebPage command displays a webpage, waiting for the user to press OK.[Return][Return]Combined with a
         condition to show it only once per user, it can be used to e.g. display important corporate information, displaying an intranet or
         internet page. This will ensure that every employee in the company gets the information.
[Return][Return]Press OK see an example
         of the ShowWebPage command.",The
ShowWebPage Command,Chart

ShowWebPage https://www.fasttrackscript.com/LogonScripts,Setting up Domain Logon Scripts with FastTrack Scripting Host

 

''==== SHOW A DOCUMENTATION MENU ====

:ShowMenu

Set WebDoc=[Menu Select a topic of interest,Find|Documentation Overview,Getting Started Guide,Defrag|Working With Logical
         Paths,Pictures|Using
Graphical User Interfaces,User|Setting Up Logon Scripts,HardDrive|Using SyncDir To Copy
         Data,Network|Windows 7 Deployments,Software|Unattended Installations,Process|Convert Script To Exe,Shield|Compile Script To
         Msi,User|Free Webinar Info,Stop|Exit]

 

''==== COMNVERT SELECTION TO URL ====

Set Url=[Blank]

Switch [Var WebDoc]

Case Documentation Overview

  Set Url=https://www.fasttrackscript.com/Docs

Case Getting Started Guide

  Set Url=https://www.fasttrackscript.com/GettingStarted

Case Working With Logical Paths

  Set Url=https://www.fasttrackscript.com/Paths

Case Using Graphical User Interfaces

  Set Url=https://www.fasttrackscript.com/GUI

Case Setting Up Logon Scripts

  Set Url=https://www.fasttrackscript.com/LogonScripts

Case Using SyncDir To Copy Data

  Set Url=https://www.fasttrackscript.com/SyncDir

Case Windows 7 Deployments

  Set Url=https://www.fasttrackscript.com/OSDeploy

Case Unattended Installations

  Set Url=https://www.fasttrackscript.com/SoftwareDeploy

Case Convert Script To Exe

  Set Url=https://www.fasttrackscript.com/Apps

Case Compile Script To Msi

  Set Url=https://www.fasttrackscript.com/Msi

Case Free Webinar Info

  Set Url=http://www.binaryresearch.net

End Switch

 

''==== SHOW WEB PAGE BASED ON SELECTION OR EXIT ====

If Not VarIsEmpty Url Then

  ShowWebPage [Var Url],[Var WebDoc]

  Goto ShowMenu

End If



Rating: 5 out of 5

"Use this as a replacement for VBScript and PowerShell"

"It's easy to include attractive GUI elements in FastTrack scripts, beyond the basic dialog boxes and text input that VBScript offers ... Another powerful feature is the ability to distribute scripts as Windows Installer (.msi) or standard .exe files. Although interesting in its own right, this ability results in a much more intriguing capability: to repackage -- or wrap -- software installers as .msi files without using snapshots. If you've ever created an .msi installer file from before-and-after system snapshots, for use with a software distribution system such as Group Policy or SCCM, then you know how hit-and-miss the results can be."

Read full review


Rating: 8 out of 10

"Faster than the rest"

"We found the FastTrack syntax to be more transparent and easier to learn than Microsoft's PowerShell – the editor in particular provided good support in this regard. the Script Editor offers a large number of options from the command set through to simple output of graphical elements, which cannot be achieved at all with PowerShell or other solutions or only with a significantly greater level of effort."

"Anyone wanting to tackle the many hurdles in everyday admin and especially anyone for whom logon scripts and client automation is a priority will benefit from the variety of functions offered by FastTrack."

Review in English      Review in German