Southsoftware.com
.:Pricing
Home
Products
Downloads
Support
Contacts
Site Map
.:Advanced Task Scheduler
About product
Download trial
Purchase license
Compare editions
View screenshot
FAQ & Support
Press Kit
.:Articles
Online manual
Blog posts
Videos
More articles...
.:Follow us
Follow us on Facebook Follow us on Twitter Follow us on YouTube
   

Advanced Task Scheduler Articles

Run scheduled tasks when no user is logged on into the system

To set up Advanced Task Scheduler to run tasks in background when no user is logged on into the system:

  1. Create your task on the “All Users” tab.
  2. Select the “Run task on the hidden desktop” option on the “User Account Options” tab of the Task Properties window.
  3. Select the “Start task under the following account” option and choose the “Service account” on the “User Account Options” tab of the Task Properties window.

Creating task that runs when no user is logged on into the system in Advanced Task Scheduler Professional

Network access

Please note that if your task runs on All Users tab and uses a network drive, you may get Access Denied or similar error. In that case you need to change user account for Advanced Task Scheduler Service from LocalSystem to an administrator account. To change service account go to Control Panel | Administrative Tools | Services, double click Advanced Task Scheduler Service and specify user account on the Log On tab of the Service Properties window.

User input

Please make sure that your task does not require user’s input. As the task is executed on the hidden desktop, no user will be able to communicate with it.

Active user

Hidden task will start on the hidden desktop transparently for all logged on users. So the task will start always on the hidden desktop no matter what user is logged on and working on the system. The “User accounts (All users only)” options on the “User Account Options” tab of the Task Properties window are ignored.

Video tutorial

Schedule task when no user is logged on into the system :

Automate FTP transfers with Advanced Task Scheduler

Advanced Task Scheduler allows uploading, downloading and deleting files from an FTP or Secure FTP (FTPS) server. These operations can be scheduled to run in a specified time, time intervals, or by such events as file modification or creation. Advanced Task Scheduler can run FTP transfers when a specified user is logged on to the system or run them in background even when no user is logged on.

All editions of Advanced Task Scheduler support FTP operations. The examples below are for Advanced Task Scheduler Professional.

Upload a file to an FTP server

To upload a file to an FTP server with Advanced Task Scheduler, create a task with FTP upload shortcut type. Enter path to the file you want to upload to the Local dir field, select the Include files check box and enter name of the file to the field next to check box. FTP server address and directory is specified in the Remote dir field. Server address must start with ftp:// or ftps:// prefix.

In the If destination file already exists box you can choose how to process already existing files: leave them or overwrite.

There are FTP options in the bottom of the dialog where you can enter username/password and set tunneling proxy settings.

FTP Upload

Download a file from an FTP server

To download a file from an FTP server with Advanced Task Scheduler, create a task with FTP download shortcut type. Enter FTP server address and directory where the file is located to the Remote dir field. Server address must start with ftp:// or ftps:// prefix. Enter path to a folder where you want to download the file to the Local dir filed, select the Include files check box and enter name of the file to the field next to check box.

In the If destination file already exists box you can choose how to process already existing files: leave them or overwrite.

There are FTP options in the bottom of the dialog where you can enter username/password and set tunneling proxy settings.

FTP Download

Upload and download a folder or directory tree

In addition to single file transfer, Advanced Task Scheduler allows FTP operations with multiple files. The Include files and Exclude files fields are used to configure multiple file transfer.

  • When both Include files and Exclude files check boxes are unchecked, all files and all subfolders are uploaded or downloaded.
  • The Include files field contains a list of files or filemasks to include. Several files and filemasks separated by semicolon can be specified.
    For example, “file.txt;*.doc” will include the file.txt file and all .doc files.
  • The Exclude files field contains a list of files or filemasks to exclude. Several files and filemasks separated by semicolon can be specified.
    For example, “file.txt;*.doc” will exclude the file.txt file and all .doc files.
  • To include or exclude files in subfolders, directory separators (“\”) can be used in filemasks.
    For example, “file.txt” – include or exclude file.txt file only,
    dir\file.txt” – include or exclude file.txt file from “dir” subfolder only,
    *.txt” – include or exclude all .txt files from all subfolders,
    dir\*.txt” – include .txt files from “dir” and all its subdirectories.
  • To download files without recursing down directories in the file system, specify “*\*.*” in the Exclude files field.

Delete files from an FTP server

To delete files from an FTP server with Advanced Task Scheduler, create a task with FTP delete schedule type.
The task options are very similar to the upload and download schedule types.

Error handling if FTP fails

FTP operations return number of files affected in the LastExitCode value. You can check that value in the IF statement. Please note that if you use Leave existing file option, the left files will not count. The task in the example below displays success or fail message depending on the result on the FTP upload operation.

FTP Task

Perl scripting in Advanced Task Scheduler

Internal and standard Perl interpreter
Advanced Task Scheduler comes with internal portable Perl interpreter. You only need to install Advanced Task Scheduler, create a Perl script task and use all Perl scripting power.

Perl Task
Perl Execution Log

Getting Perl version
The script below displays current Perl version to the task execution log:

print "Version: $]";

Current task’s arguments
The script below displays the %advscheduler hash variable to the task execution log:

foreach $key (keys %advscheduler) {
  print $key, "=", $advscheduler{$key}, "\n";
}

Load code from external files
The script below runs Perl code from the filename.pl file:

require 'filename.pl';

For portable Perl the filename.pl file must be located in the current directory or in a directory listed in the Additional library path option in the Scripts section of the Preferences window. For installed Perl the filename.pl file must be located in the current directory or in a directory listed in the PERL5LIB environment variable.

Commander features
Perl script can call some Advanced Task Scheduler features via the Command line tool. The example below demonstrates how to send an e-mail message to a GMail address:

system($commander,
"--SendEMail",
"-email",
"username\@gmail.com",
"-server",
"smtp.gmail.com:587",
"-auth",
"username\@gmail.com",
"password",
"-starttls",
"-sender",
"sender\@mail.com",
"-subject",
"Subject",
"-msg",
"Text") == 0 or die "system @args failed: $?"

Where $commander is file name and path to the Command line tool: advscheduler_commander.exe, advscheduler_procmd.exe (Professional Edition) or advscheduler_netcmd.exe (Network Edition). Command line described in the Command line tool topic.

Python scripting in Advanced Task Scheduler

Internal and standard Python interpreter
Advanced Task Scheduler comes with internal portable Python interpreter. You only need to install Advanced Task Scheduler, create a Python script task and use all Python scripting power.

Python Task
Python Execution Log

Getting Python version
The script below displays current Python version to the task execution log:

import platform
print platform.python_version()

Current task’s arguments
The script below displays the advscheduler dictionary to the task execution log:

for key, value in advscheduler.iteritems() :
  print key, value

Load code from external files
The script below runs Python code from the filename.py file:

import filename.py

For portable Python the filename.py file must be located in the current directory or in a directory listed in the Additional library path option in the Scripts section of the Preferences window. For installed Python the filename.py file must be located in the current directory or in a directory listed in the PYTHONPATH environment variable.

Commander features
Python script can call some Advanced Task Scheduler features via the Command line tool. The example below demonstrates how to send an e-mail message to a GMail address:

from subprocess import call
call([commander,
"--SendEMail",
"-email",
"username@gmail.com",
"-server",
"smtp.gmail.com:587",
"-auth",
"username@gmail.com",
"password",
"-starttls",
"-sender",
"sender@mail.com",
"-subject",
"Subject",
"-msg",
"Text"]);

Where commander is file name and path to the Command line tool: advscheduler_commander.exe, advscheduler_procmd.exe (Professional Edition) or advscheduler_netcmd.exe (Network Edition). Command line described in the Command line tool topic.

Start tasks with RunDLL

Some Windows Explorer features such as My Computer, Recycle Bin, etc. may be started from Advanced Task Scheduler. To do it type “rundll32.exe” in the task properties dialog box under Executable file name label and under Command line arguments label type one of the following strings (without quotes). Like this:

Start tasks with RunDLL

Please copy string (without quotes) from this text to the clipboard and paste it where it should be. Read more about copying from the help topic to the clipboard in the Windows help file.

Note that some function can start only under Windows NT and other functions can start only under Windows 9x.

Control Panel

shell32.dll,Control_RunDLL” – displays all the Control Panel icons in an Explorer view

Accessibility Properties

shell32.dll,Control_RunDLL access.cpl,,5” – displays the Accessibility General properties

shell32.dll,Control_RunDLL access.cpl,,1” – displays the Accessibility Keyboard properties

shell32.dll,Control_RunDLL access.cpl,,2” – displays the Accessibility Sound properties

shell32.dll,Control_RunDLL access.cpl,,3” – displays the Accessibility Display properties

shell32.dll,Control_RunDLL access.cpl,,4” – displays the Accessibility Mouse properties

Add New Hardware Wizard

shell32.dll,Control_RunDLL sysdm.cpl @1” – runs the Add New Hardware wizard

Add New Printer Wizard

shell32.dll,SHHelpShortcuts_RunDLL AddPrinter” – runs the Add New Printer wizard

Add/Remove Programs Property Page

shell32.dll,Control_RunDLL appwiz.cpl,,1” – displays the Install/Uninstall tab selected

shell32.dll,Control_RunDLL appwiz.cpl,,2” – displays the Windows Setup tab selected

shell32.dll,Control_RunDLL appwiz.cpl,,3” – displays the Startup Disk tab selected

Briefcase

syncui.dll,Briefcase_Create” – Creates a new Briefcase on the desktop

Copy Disk Dialog

diskcopy.dll,DiskCopyRunDll” – displays the Copy Disk dialog for removable media

Create New Shortcut

appwiz.cpl,NewLinkHere {filename}” – Displays the Create New Shortcut dialog. Completing the filename in the dialog creates a shortcut at the location specified by {filename}

Date & Time Properties

shell32.dll,Control_RunDLL timedate.cpl,,0” – displays Set Date & Time properties tab

shell32.dll,Control_RunDLL timedate.cpl,,1” – displays the Time Zone properties tab

Dial Up Networking (DUN)

rnaui.dll,RnaDial {connection name}” – displays the Connect To dialog for the passed connection. If connected, displays the connection status dialog.

rnaui.dll,RnaWizard” – displays the Dial Up Networking Connection Wizard

Display Options

shell32.dll,Control_RunDLL desk.cpl,,0” – displays the Background tab selected

shell32.dll,Control_RunDLL desk.cpl,,1” – displays the Screen Saver tab selected

shell32.dll,Control_RunDLL desk.cpl,,2” – displays the Appearance tab selected

shell32.dll,Control_RunDLL desk.cpl,,3” – displays the Settings tab selected

Note: Your video adapter may install other property pages into DESK.CPL dynamically when selected with its own icon (i.e an ATI or Matrox control panel icon). Additionally, it also may invoke its own control panel applet mimicking the Windows display options.

Fonts

shell32.dll,SHHelpShortcuts_RunDLL FontsFolder” – displays the Fonts Folder in Explorer view

shell32.dll,Control_RunDLL main.cpl @3” – Also displays the Fonts Folder in Explorer view

Format Drive Dialog (floppy disk only)

shell32.dll,SHFormatDrive” – displays the floppy disk Format Drive dialog. Causes the Drive A to be accessed on showing.

Game Controllers

shell32.dll,Control_RunDLL joy.cpl,,0” – displays the Game Controllers General property page

shell32.dll,Control_RunDLL joy.cpl,,1” – displays the Game Controllers Advanced property page

HTML

mshtml.dll,PrintHTML {HTML doc to print}” – sends the passed file to the printer

Internet Explorer 4 Control Panel

shell32.dll,Control_RunDLL inetcpl.cpl” – displays Internet Properties, General tab

shell32.dll,Control_RunDLL inetcpl.cpl,,0” – displays Internet Properties, General tab (same as above)

shell32.dll,Control_RunDLL inetcpl.cpl,,1” – displays Internet Properties, Security tab

shell32.dll,Control_RunDLL inetcpl.cpl,,2” – displays Internet Properties, Content tab

shell32.dll,Control_RunDLL inetcpl.cpl,,3” – displays the Internet Control Panel, Connection tab

shell32.dll,Control_RunDLL inetcpl.cpl,,4” – displays the Internet Control Panel, Programs tab

shell32.dll,Control_RunDLL inetcpl.cpl,,5” – displays the Internet Control Panel, Advanced tab

Joystick Properties

shell32.dll,Control_RunDLL joy.cpl” – displays the Joystick property page

Mail and Fax Options

shell32.dll,Control_RunDLL mlcfg32.cpl” – displays the Microsoft Exchange Profiles general property page

Mail Postoffice Options

shell32.dll,Control_RunDLL wgpocpl.cpl” – displays the Microsoft Postoffice Workgroup Admin property page

Main Group Options/Properties

shell32.dll,Control_RunDLL main.cpl @0” – displays Mouse Properties

shell32.dll,Control_RunDLL main.cpl @1” – displays Keyboard Properties, Speed tab

shell32.dll,Control_RunDLL main.cpl @1,,1” – displays Keyboard Properties, Language tab

shell32.dll,Control_RunDLL main.cpl @1,,2” – displays Keyboard Properties, General tab

shell32.dll,Control_RunDLL main.cpl @2” – displays the Printers Folder (including Add Printer)

shell32.dll,Control_RunDLL main.cpl @3” – displays the Fonts Folder in Explorer view

shell32.dll,Control_RunDLL main.cpl @4” – displays Power Management Properties

Mouse and Keyboard

keyboard,disable” – Disable the keyboard

mouse,disable” – Disable the Mouse

Modem

shell32.dll,Control_RunDLL modem.cpl,,add” – Runs the Add New Modem wizard

Multimedia & Sound Properties

shell32.dll,Control_RunDLL mmsys.cpl,,0” – displays the Multimedia/Audio property page

shell32.dll,Control_RunDLL mmsys.cpl,,1” – displays the Multimedia/Video property page

shell32.dll,Control_RunDLL mmsys.cpl,,2” – displays the Multimedia/MIDI property page

shell32.dll,Control_RunDLL mmsys.cpl,,3” – displays the Multimedia/CD Music property page

shell32.dll,Control_RunDLL mmsys.cpl,,4” – displays the Multimedia/Advanced property page

shell32.dll,Control_RunDLL mmsys.cpl @1” – displays the Sound Properties page

Network Properties

shell32.dll,Control_RunDLL netcpl.cpl” – displays the Networks properties, Configuration tab

ODBC32 Data Source Administrator

shell32.dll,Control_RunDLL odbccp32.cpl” – displays the ODBC32 Data Source Administrator properties dialog

Open With

shell32.dll,OpenAs_RunDLL {drive:\path\filename}” – displays the application/file “Open With” dialog. Passing the full file drive, path and name as a parameter will cause the dialog to display the line “Click the program you want to use to open the file `{drive:\path\filename}'”.

About windows

shell32,ShellAboutA {Info-Box}” – Opens ‘About Windows’ Window and displays text from {Info-Box} in the description.

Passwords Properties

shell32.dll,Control_RunDLL password.cpl” – displays the Passwords properties, Change Passwords tab

Power Management Properties

shell32.dll,Control_RunDLL powercfg.cpl” – displays the Power Management properties, Power Schemes tab

Printer

shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder” – displays the Printers Folder (including Add Printer)

shell32.dll,Control_RunDLL main.cpl @2” – Also displays the Printers Folder (including Add Printer)

msprint2.dll,RUNDLL_PrintTestPage” – Prints the test page on the current printer

Regional Settings

shell32.dll,Control_RunDLL intl.cpl,,0” – displays the Regional Settings property page

shell32.dll,Control_RunDLL intl.cpl,,1” – displays the Numbers property page

shell32.dll,Control_RunDLL intl.cpl,,2” – displays the Currency property page

shell32.dll,Control_RunDLL intl.cpl,,3” – displays the Time property page

shell32.dll,Control_RunDLL intl.cpl,,4” – displays the Date property page

Screen Saver Installation

desk.cpl,InstallScreenSaver c:\win\system\Flying Windows.scr” – Installs the new screen saver and runs the display/screen saver preview property page. Specify a valid path to the screen saver file to install. If you are installing a new screen saver, first copy the screen saver file into the windows\system folder, then execute the above command. This will install the specified saver as the current screen saver. It will not copy the file into the windows\system folder. Replace the string above with the name of your actual .scr file.

System Properties

shell32.dll,Control_RunDLL sysdm.cpl,,0” – displays the General property page. Also this property page may be started by WIN-PAUSE BREAK keys.

shell32.dll,Control_RunDLL sysdm.cpl,,1” – displays the Device Manager property page

shell32.dll,Control_RunDLL sysdm.cpl,,2” – displays the Hardware Profiles property page

shell32.dll,Control_RunDLL sysdm.cpl,,3” – displays the Performance property page

Shutdown

shell,shellexecute Explorer” – restart an Explorer

krnl386.exe,exitkernel” – exit from Windows 9x without any confirmation

user,exitwindowsexec” – hot restart Windows.

user,exitwindows” – forces Windows to shutdown, and wait either to be turned off, or reset

Telephony Properties

shell32.dll,Control_RunDLL telephon.cpl users” – displays the Dialing Properties dialog

Users Properties (Win98)

shell32.dll,Control_RunDLL inetcpl.cpl users” – displays the Multi-User Settings properties dialog (MSFamily Networking Login)

User

user,cascadechildwindows” – Cascade Windows

user,tilechildwindows” – Tile Windows

user,repaintscreen” – Repaint Desktop

user,swapmousebutton” – Swap the mouse buttons

user,setcursorpos” – Move mouse cursor to (0,0)

user,setcaretblinktime” – Set the caret blink time

user, setdoubleclicktime” – Set the double click time

user,wnetconnectdialog”” – Show “Map Network Drive” dialog

user,wnetdisconnectdialog” – Show “Disconnect Network Disk” dialog

user,disableoemlayer” – Show BSOD (”’Blue Screen Of Death”’)

Plug’n’Play

rundll32 sysdm.cpl,InstallDevice_Rundll” – Search non-PnP devices.

   
About us   Privacy policy   Terms of use   Link to us
Current Version: 4.5.0.616
The following prices are based on a single order:
Basic Edition 32 and 64-bit$ 39.95 USD
Professional Edition 32 and 64-bit$ 59.95 USD
Network Edition 32 and 64-bit$ 149.95 USD
.:Testimonials

I use Advanced Task Scheduler to run my backups jobs. After performing a backup by standard Windows 2003 Server means, Advanced Task Scheduler launches a script which copies files. I am glad I chose your program.

Rob Hannigan

.:Requirements
Computer: Minimum required by operating system you are running.
Disk Space: Under 30 MB
Operating System: Microsoft Windows 32-bit or 64-bit.
Read more...