home *** CD-ROM | disk | FTP | other *** search
Wrap
; ***************************************************** ; Example14.ftp ; ============= ; This example shows how to access the command line ; parameters! ; If you are comfortable with the Windows enviroment you ; could try and create a shortcut to execute this script ; with parameters like this: ; <FTP Control Path>\RunScript.exe <this FTP Script> Parameter1 Parameter2 ; ----------------------------------------------------- ; This example also shows the use of a few global variables: ; NewLine ; ScriptDir ; FTPCtrlDir ; CurrentLocalDir ; WeekNumber ; ----------------------------------------------------- ; NOTE: This is just a sample - for your information ;o) ; ***************************************************** ; ******* First provide the Login information... Let A="Script files are located in %%ScriptDir%% %%NewLine%% FTP Control is located in %%FTPCtrlDir%% %%NewLine%% Current Local folder is %%CurrentLocalDir%%" Message "%%A%%" Local-CD ".." Message "Current Local folder is now: %%CurrentLocalDir%%" Message "Current WeekNumber is: %%WeekNumber%%" if %%ParamCount%% > 0 then Message "Commandline parameter 1 was: %%Param1%%" endif if %%ParamCount%% > 1 then Message "Commandline parameter 2 was: %%Param2%%" endif if %%ParamCount%% > 2 then Message "Commandline parameter 1 was: %%Param3%%" endif ALLPARAMS Message "%%AllPar%%"