kluster Dio maturo
  
 
  Registrato: 15/04/06 13:14 Messaggi: 2898
 
  | 
		
			
				 Inviato: 08 Dic 2007 22:44    Oggetto: [FREEWARE] Staff-FTP ftp client con funzioni FXP e scripting | 
				     | 
			 
			
				
  | 
			 
			
				Smart FTP
 
ottimo client ftp con funzionalita quali:
 
 
- FXP (Trasferimento da server a server)
 
 - TLS / SSL encryption
 
 - Comandi personalizzati per particolari FTP server (Raiden, Serv-U, glftpd etc)
 
 - Visualizzazione Tree Building
 
 - Importazione URL
 
 - Linguaggio di scripting interno
 
  
 
 
 
Purtroppo solo per windows, cmq puo' essere trasformato in standalone in questo modo tramite Universal Extractor:
 
- scompattate il file sftp_setup.exe una volta scaricato.
 
- cancellate install_script.iss
 
- cancellate la cartella embedded
 
- rinominate la cartella {app} e piazzatevela sulla penna usb o dove vi pare nel vostro hd.
 
Una volta aperto dal menu Option ---> Languages --> Italian ed il software è italiano.
 
 
Software a mio avviso potentissimo per la possibilità di creare script.
 
 
Ecco il dom dei comandi lanciabili via script:
 
 	  | Codice: | 	 		  
 
     SELECT FTP | FTP | LOCAL | ALL | NONE | TODAY | YESTERDAY | MASK <mask>
 
 
    - select either a window (ftp, fxp, local) or the files (all, none, today-dated,
 
      yesterday-dated)
 
 
  DESELECT MASK <mask>
 
 
    - deselect items with the mask
 
 
  LIMITSELECTION TODAY | YESTERDAY | MASK <mask>
 
 
 
    - limit the selection just done to only today-dated and/or yesterday-dated fieles/dirs.
 
 
  REFRESH
 
 
    - refreshes directory
 
 
  CHDIR <new directory>
 
 
    - change dir
 
 
  ADDTOQUERY
 
 
    - adds files/dirs to que
 
 
  TRANSFER
 
 
    - transfer files in que
 
 
  COMPARE SIMPLE | EXT
 
 
    - compares windows either without size (simple) or with size /ext)
 
 
  IF <option> <comparator> <value>
 
    ...
 
  END
 
 
    - this is a basic if-implementation for option you can use any variable you defined
 
      or FXP.CONNECTED, FTP.CONNECTED, FTP.OK (OK means last command was successfull), FXP.OK
 
      FTP.PWD or FXP.PWD.
 
    - comperator can be !=, <> or =
 
 
  GOTO <label>
 
 
    - jump to a new entry point. an entrypoint must start with ":" like ":CommeHere"
 
    - the keyword START means the 1st line of the script and END the end ohhhha ;)
 
 
  VAR <varname>=<contens>
 
 
    - define variables...looks better if u do configs with vars so the user doesnt need to go
 
      into the code to change something
 
 
    - contens could also be...
 
 
       SELECTION = an array with the current selection of items (ftp/fxp/local)
 
 
         e.g.:
 
         select ftp
 
         select mask *-blahaha
 
         var items=SELECTION
 
 
       GETPART "<variable>" "<part>" "<seperator>" = cuts parts of an other variable out
 
 
         e.g.:
 
         var item=this is a test
 
         var subitem=GETPART "$item" "4" " "
 
         #subitem would be "test" then
 
 
       MIRC LASTLINE <channel> = takes last line from that channel in mirc
 
 
         e.g.:
 
         var ll=MIRC LASTLINE #my_channel
 
 
       EXECUTE <program with parameters>
 
 
         you can then use the returncode and work with that
 
 
       FTPCMD <ftp-command>
 
 
         e.g.:
 
         var res=ftpcmd site dupe blahaahha-blh
 
 
       some calucation like "10+5" with "-,*,/"...also "$othervar + 10" is possible
 
 
 
  CONNECT <url> | SITEMANAGER <entry-name>
 
 
    - opens a connection to an ftp-server in selected window. the format
 
      is <user>:<password>@<ip>:<port>
 
 
  DISCONNECT
 
 
    - disconnects from selected site
 
 
  MKTREE [<deep> <mask> <filename>]
 
 
    - creates a file with a tree with a max sublevel of <deep> dirs and includes all files 
 
      with matches <mask>
 
 
  SAVEDIR [<filename>]
 
 
    - saves dir-list to file
 
 
  EXEC <filename>
 
 
    - executes a program
 
 
 
  OPEN <host> <port>
 
 
    - opens a connection to a server
 
 
  LOGIN <user> <password>
 
 
    - logs into server
 
 
  SEND <string>
 
 
    - sends a site-sommand (u still must include "site" if needed)
 
 
  SET <internal variable>=<value>
 
 
    - Like VAR but modifies internal veriables. 
 
      Right now only "SERVER" is supported. Usefull in "SiteManager -> On Connect"
 
      when a server isnt identied right (e.g. glftpd-servers with different welcome-messages).
 
      
 
  MIRC <command>
 
 
    - send strings to mirc-client
 
      e.g. "MIRC /cmd whois %IRCNICK%" will display whois-message of your login
 
      (%IRCNICK% is an internal variable)
 
 
  WAITIRC <channel-mask> <message-mask>
 
 
    - script waits until some of that messages have been found in a channel (needs mirc32
 
      running)
 
 
      e.g.: waitirc #my_channel1;#my_channel2 *update*;*new*
 
 
      Can also have something like...
 
      waitirc #bluuabab hello %nick%!
 
      this will wait + create a variable with the name nick with that contents of the irc-line.
 
      U can imagine for what it might be usefull.
 
 
  WRITELN <text>
 
 
    - will write something to the log-screen (good for debuging/statustext)
 
 
  FOR <item-variable> in <array>
 
    ...
 
  END
 
 
    - an array can be created with "var x=SELECTION" or by making your own with 
 
      ";" as seperator for your items...e.g.: "blahaha;blahaha2;labahah3"
 
    - the for-loop will run as long as there are items in an aray and as long as they 
 
      are not empty.
 
    - item-variable will then become the current array-index
 
    - attention: the window in the program will not jump into for-loops, also it will 
 
      be performed within the program itselfe.
 
 
      e.g.:
 
      select mask *-blhaa
 
      var s=SELECTION
 
      for item in $s                       #<-- the prg-indicator will stop here, but all 
 
        writeln $item                           will be perfomed, dont worry
 
      end
 
 
-----------------------------------
 
 
  There are some internal veriables like
 
 
  %TODAY%                        - dayted dir from today like 0913 for the 13th of sep.
 
  %YEASTERDAY%                   - dayted dir from yesterday
 
  %MONTH[operator][number]%      - month wich is [number] month back/before like %month-1% will be last month
 
  %DAY[operator][number]%        - same for day
 
  %YEAR%                         - current year
 
  %MINUTE%                       - current minute
 
  %HOUR%                         - current hour
 
 
  there are lots more...but i guess i have to put out some more samples to make it clear...will come.
 
 
 
 | 	 
  | 
			 
		  |