I have created a small Auto-it script for the automation of starting the mini-sftp-server. When I want to fire up the server I just click the script instead. Or simply place it in the startup menu. Simply replace the proper fields with your parameters and your done. Remember to save it as .Au3 (I used Auto-it version 3) You can also compile the script to exe once you have entered your parameters into the script.
*Note: Auto-it must be installed to run.
Script below*************************
;
; AutoIt Version: 3.0
; Language: English
; Platform: Win9x/NT
; Author: William Britton (williambritton@comcast.net)
; Date: 01/14/2005
;
;
; Script Function:
; Opens Core FTP's mini-sftp-server executable, enters parameters, starts the server and minimizes the window.
;
; Side Effects;
; Sometimes ZoneAlarm will stop the script from running until you allow it (do not show option on popup window).
;
; Run mini-sftp-server
; Example: "C:\sftpsvr.exe"
Run("Enter Path Here")
; Wait for the mini-sftp-server to become active.
WinWaitActive("Core FTP mini-sftp-server")
; Now that the mini-sftp-server window is active enter the parameters.
; Username.
Send("Enter Username Here")
Sleep(500)
Send("{TAB}")
; Password.
Send("Enter Password Here")
Sleep(500)
Send("{TAB}")
; Port Number.
Send("Enter Port here")
Sleep(500)
Send("{TAB}")
; Path To FTP Folder.
Send("Enter Path To FTP Folder Here")
Sleep(500)
Send("{TAB}")
; Click the 'Start' button.
Send("{ENTER}")
Sleep(500)
; Minimize The Window.
WinSetState("Core FTP mini-sftp-server", "",@SW_MINIMIZE)
; Finished!
Auto-it script
Revised Auto-it script
The latest version of the mini-sftp-server saves entered data across instances in the registry. Now the only thing we need to do is start it once it is running. This script will fire the mini-sftp-server and start it listening.
;
; AutoIt Version: 3.0
; Language: English
; Platform: Win9x/NT
; Author: William Britton (williambritton@comcast.net)
; Date: 01/15/2005
; Version: 0.2
;
; Script Function:
; Opens Core FTP's mini-sftp-server executable, starts the server and minimizes the window.
;
; Side Effects;
; Sometimes ZoneAlarm will stop the script from running until you allow it (do not show option on popup window).
;
; Run mini-sftp-server
; Example: "C:\sftpsvr.exe"
Run("Enter Path Here")
; Wait for the mini-sftp-server to become active.
WinWaitActive("Core FTP mini-sftp-server")
; Now that the mini-sftp-server window is active, tab to the 'Start' button.
Send("{TAB}")
Send("{TAB}")
Send("{TAB}")
Send("{TAB}")
Send("{ENTER}")
Sleep(500)
; Minimize The Window.
WinSetState("Core FTP mini-sftp-server", "",@SW_MINIMIZE)
; Finished!
;
; AutoIt Version: 3.0
; Language: English
; Platform: Win9x/NT
; Author: William Britton (williambritton@comcast.net)
; Date: 01/15/2005
; Version: 0.2
;
; Script Function:
; Opens Core FTP's mini-sftp-server executable, starts the server and minimizes the window.
;
; Side Effects;
; Sometimes ZoneAlarm will stop the script from running until you allow it (do not show option on popup window).
;
; Run mini-sftp-server
; Example: "C:\sftpsvr.exe"
Run("Enter Path Here")
; Wait for the mini-sftp-server to become active.
WinWaitActive("Core FTP mini-sftp-server")
; Now that the mini-sftp-server window is active, tab to the 'Start' button.
Send("{TAB}")
Send("{TAB}")
Send("{TAB}")
Send("{TAB}")
Send("{ENTER}")
Sleep(500)
; Minimize The Window.
WinSetState("Core FTP mini-sftp-server", "",@SW_MINIMIZE)
; Finished!