Running TurboFTP Sync Task in Windows Task Scheduler

TurboFTP Client comes with the Task Scheduler to set up FTP or SFTP scheduled tasks which are by default running in TurboFTP's Sync Service in NT service mode. However, sometimes you might want to have the sync tasks run in the command line triggered by an external application like Windows Task Scheduler, where you want to handle things with more flexibility or to consolidate all the Windows automation tasks. TurboFTP Client version 6.99 has made this possible with the added command line option of -t. This article will guide you through the setup process of running TurboFTP Sync Tasks in command line mode.

Run a sync task in a regular command line

If you want to run an FTP / SFTP scheduled job in the regular command line, add the TurboFTP folder path to the system environment variable "Path". To do so, please follow the steps below:

  1. Right-click "This PC" or "My Computer" and select "Properties".
  2. In the "System" window, click "Advanced system settings".
  3. In the "Advanced" tab, click the "Environment Variables" button.
  4. Under "System Variables", scroll down and select "Path", and then click "Edit".
  5. Click "New" and add the path of the TurboFTP folder, which will typically be "C:\Program Files\TurboFTP".
  6. Click "OK" to save the changes.

Now, open the Command Prompt or Windows PowerShell and run a test command by typing "tftpsvc" and pressing Enter. If the PATH environment variable is set up correctly, it should print the program version like 'TurboFTP Sync Service v6.99 Build 1338' and other information.

Use the following command line to run the task:tftpsvc /cl -tXWhere X is the task ID, e.g., t1. Admin privileges are required to run the command because the program needs to access task configurations stored in folder C:\ProgramData\TurboFTP. It also needs to write logs located in that folder too. 

Run a task in Windows Task Scheduler

 To run an SFTP or FTP sync job in Windows Task Scheduler:

  1. Create a basic task in Windows Task Scheduler using the "Create Basic Task Wizard".
  2. Enter the name and choose the trigger option you need.
  3. Choose "Start a program" as the action. And provide the full path of tftpsvc.exe as the program.
  4. Finish the Wizard and edit the task properties.
  5. Check the option "Run with the highest privileges" in the General tab.
  6. Go to the Actions tab, and enter "/cl -tX" without the double quotes, where X is the ID of the task already configured and tested. Click OK to confirm and click OK again to close the task properties dialog. 

Finally, you can test run the task by right-clicking the task in Windows Task Scheduler and select Run. To debug or review the task execution, launch TurboFTP client as admin and check the task log in its own Task Scheduler.

Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

MFT Server IP Blocking Or Whitelisting Based On Or...
We use cookies to maintain login sessions, analytics and to improve your experience on our website. By continuing to use our site, you accept our use of cookies, and Privacy Policy.