Loading ...
Sorry, an error occurred while loading the content.

running program from clip

Expand Messages
  • Don Passenger
    I want to start ws_ftp with a clip. How? I am looking through the archives .... shell? thanks for any help ... Don Passenger mailto:dpasseng@iserv.net
    Message 1 of 4 , Aug 4 9:35 PM
    • 0 Attachment
      I want to start ws_ftp with a clip. How?
      I am looking through the archives .... shell?
      thanks for any help

      ---
      Don Passenger
      mailto:dpasseng@...
      personal: http://www.iserv.net/~dpasseng
      work: http://www.grcourt.org


      [Non-text portions of this message have been removed]
    • thefrank
      Hi Don, ... This is the clip I use, which is modified slightly from a clip I believe Jody built (I may be in error...and if so apologize to whoever did the
      Message 2 of 4 , Aug 5 1:41 AM
      • 0 Attachment
        Hi Don,

        > I want to start ws_ftp with a clip. How?

        This is the clip I use, which is modified slightly from a clip I
        believe Jody built (I may be in error...and if so apologize to
        whoever did the original work...)

        There are 15 lines to the clip, I have numbered them to make it
        easier to unwrap correctly. Of course my line numbers will need to be
        deleted for the clip to work...

        1- ^!SetIniFile NtbUsers
        2- ^!SetWizardTitle *Open* WsFtp or *Transfer* File
        3- ^!SetWizardLabel UP/DOWNLOAD File, Binaries OK, Set Paths...
        4- ^!Set %OpenWsFtp%=^?{=Open WsFtpLE - No Transfer^=1|_Transfer
        File^=0}; %Transfer%=^?{Which direction?=_Upload^=1|Download^=0}; %
        FullPath%=^?{(T=O)Which file=^##}; %ProfileName%=^?{(H=6)Enter WsFtp
        Profile Name==_^$GetValue("WsFtp-ja:PName1")$|^$GetValue("WsFtp-
        ja:PName2")$|^$GetValue("WsFtp-ja:PName3")$|^$GetValue("WsFtp-
        ja:PName4")$|^$GetValue("WsFtp-ja:PName5")$|^$GetValue("WsFtp-
        ja:PName6")$|^$GetValue("WsFtp-ja:PName7")$|^$GetValue("WsFtp-
        ja:PName8")$|^$GetValue("WsFtp-ja:PName9")$|^$GetValue("WsFtp-
        ja:PName10")$}; %ServerPath%=^?{(H=6)Enter server upload path==_^
        $GetValue("WsFtp-ja:SPath1")$|^$GetValue("WsFtp-ja:SPath2")$|^
        $GetValue("WsFtp-ja:SPath3")$|^$GetValue("WsFtp-ja:SPath4")$|^
        $GetValue("WsFtp-ja:SPath5")$|^$GetValue("WsFtp-ja:SPath6")$|^
        $GetValue("WsFtp-ja:SPath7")$|^$GetValue("WsFtp-ja:SPath8")$|^
        $GetValue("WsFtp-ja:SPath9")$|^$GetValue("WsFtp-ja:SPath10")$|^
        $GetValue("WsFtp-ja:SPath11")$|^$GetValue("WsFtp-ja:SPath12")$|^
        $GetValue("WsFtp-ja:SPath13")$|^$GetValue("WsFtp-ja:SPath14")$|^
        $GetValue("WsFtp-ja:SPath15")$|^$GetValue("WsFtp-ja:SPath16")$|^
        $GetValue("WsFtp-ja:SPath17")$|^$GetValue("WsFtp-ja:SPath18")$|^
        $GetValue("WsFtp-ja:SPath19")$|^$GetValue("WsFtp-ja:SPath20")$}
        5- ^!Set %FileName%=^$GetFileName(^%FullPath%)$
        6- ^!IfTrue ^%OpenWsFtp% Next Else Upload
        7- ^!^$GetValue("WsFtp-ja:Ws-Ftp")$
        8- ^!Goto End
        9- :Upload
        10- ^!IfTrue ^%Transfer% Next Else Download
        11- ^!^$GetValue("WsFtp-ja:Ws-Ftp")$ local:^%FullPath% ^%
        ProfileName%:^%ServerPath%^%FileName%
        12- ^!Goto End
        13- :Download
        14- ^!Info ^$GetValue("WsFtp-ja:Ws-Ftp")$ ^%ProfileName%:^%ServerPath%
        ^%FileName% local:^%FullPath%
        15- ^!^$GetValue("WsFtp-ja:Ws-Ftp")$ ^%ProfileName%:^%ServerPath%^%
        FileName% local:^%FullPath%

        I hope this helps,

        Regards,

        tf
      • thefrank
        Hi Don, I overlooked an essential component of the previous clip... Requires a file named NtbUsers.ini to be located in your NoteTabPro folder within the
        Message 3 of 4 , Aug 5 3:26 AM
        • 0 Attachment
          Hi Don,

          I overlooked an essential component of the previous clip...

          Requires a file named NtbUsers.ini to be located in your NoteTabPro
          folder within the Libraries folder. This is where your paths are
          stored. All the info in this ini must already be installed in WsFtpLE
          and named the same. Example:

          [WsFtp-ja]
          Ws-Ftp="C:\Program Files\WS_FTP\WS_FTP95.exe"
          PName1="SkagitPages-SalesODE"
          PName2="SkagitPages"
          PName3="TKG"
          PName4=
          PName5=
          PName6=
          SPath1="/usr/local/etc/httpd/vhosts/skagitpages.com/htdocs/USERS/"
          SPath2="/usr/local/etc/httpd/vhosts/skagitpages.com/htdocs/"
          SPath3="/usr/local/etc/httpd/vhosts/constructioncalc.com/htdocs/"
          SPath4=
          SPath5=
          SPath6=

          Number 1 Name and Path are default. Hit the clip, hit OK, and the
          open doc with focus will load in the background as a tray function.
          For some reason I don't understand, using the clip actually uploads a
          file faster than using the WsFtp interface directly.

          I believe the modification I made to the original clip was to remove
          the wizard that set the values for this ini file. I just build it
          directly and edit in NTP. I build several using specific path combos
          pertinent to a certain use, and rename a copy of the clip and
          associated ini. This way I forgo the set path wizard for faster
          uploads.

          regards,

          tf
        • Jody
          Hi thefrank & Don, ... Yes, that is mine. (You need to use the ^!SetIniFile NtbUsers command, if you have the ini file in the Libraries folder. You need to
          Message 4 of 4 , Aug 5 10:45 AM
          • 0 Attachment
            Hi thefrank & Don,

            >This is the clip I use, which is modified slightly from a clip I
            >believe Jody built (I may be in error...and if so apologize to
            >whoever did the original work...)

            Yes, that is mine. (You need to use the ^!SetIniFile NtbUsers
            command, if you have the ini file in the Libraries folder. You
            need to add the path to it if you use it elsewhere. See Help for
            ^!SetIniFile.) Don, you might want to download my FtpZip. It
            has help on how to set up one clickers that run in the background
            and a tool (clip) to make them. The wizard supports 10 profiles
            and 20 folders, but can be made to do as many as you want. There
            are some tips as well on how to easily setup NtbUsers manually
            too. There are some command-line examples for WinZip as well.
            Since I make zip files of my Libraries for uploading, I have a
            button on my Clipbar to zip the focused (opened) .clb file and
            another to upload to my zip folder. For me, it is four clicks in
            total: Open as Document, zip it, and upload it. (I have about 20
            one clickers in "myFTP" Library and some WinZip one clickers and
            wizards. WinZip and Ws_Ftp both operate in the background and
            close on their own while I go about my business. If the link
            below is not correct, go to my Libraries page.

            http://www.notetab.net/zip/ftpzip.zip

            >There are 15 lines to the clip, I have numbered them to make it
            >easier to unwrap correctly. Of course my line numbers will need to be
            >deleted for the clip to work...
            >
            >1- ^!SetIniFile NtbUsers
            >2- ^!SetWizardTitle *Open* WsFtp or *Transfer* File


            Happy Clip'n!
            Jody

            http://www.notetab.net

            Subscribe, UnSubscribe, Options
            mailto:Ntb-Clips-Subscribe@yahoogroups.com
            mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
            http://www.egroups.com/group/ntb-clips
          Your message has been successfully submitted and would be delivered to recipients shortly.