• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    Here's another script that saves you the bother of remembering if you have torrents running or not. :-)

    EDIT - Added 'Downloads' directory listing to scan, which can also contain current files. Removed downloable version - PITA to update.

    It executes from wbstartup, and scans mldonkey/torrents/incoming (and mldonkey/torrents/downloads) for any torrent files. If none are found, mldonkey doesn't bother starting. If there are some, it does.

    (NB the first line may need tweaking to point to your mldonkey directory.)
    (NB#2 If you've configured mldonkey to use different directories than the default for storing incoming .torrent files it will need updating to match).

    Save the following as a script with a project icon in wbstartup (set default tool to c:iconx):

    Quote:

    ; mldonkey directory (not the path to the executable, just the directory containing the executable)
    set mlddir "sys:applications/mldonkey"

    ; The line below references the mldonkey directory where incoming .torrent files are stored.
    ; this will only need changing where you've customised the default paths within mldonkey interface or config files.
    if exists "$mlddir/torrents/incoming/"
    dir "$mlddir/torrents/incoming/" >env:mldinc
    endif
    if exists "$mlddir/torrents/downloads/"
    dir "$mlddir/torrents/downloads/" >>env:mldinc
    endif
    if NOT "$mldinc" eq ""
    WaitForPort NETSTACK
    cd "$mlddir"
    run execute MLdonkey
    endif
    delete >NIL: env:mldinc


    [ Edited by boot_wb 09.04.2014 - 18:00 ]
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »14.08.12 - 14:15
    Profile Visit Website