• Paladin of the Pegasos
    Paladin of the Pegasos
    Zylesea
    Posts: 1962 from 2003/6/4
    A very quick and dirty skript (I am definietly not a DOS expert)

    wait 10 ; put in here the time interval the skript should check for usbscsi0:
    if exists ram:env/myvar
    delete ram:env/myvar
    endif
    if exists "usbscsi0:" noreq >nil:
    execute usbscsi0:myskript ; put here the name of the skript
    echo "1" >ram:env/myvar
    endif
    if not exists "ram:env/myvar"
    execute ram:bla
    endif

    Well, definitely not too elegant and a one minute type work, but at least works for usbscsi0:. This skript finishes itselfs once usbscsi0: is inserted and the skript off that flash drive is executed. I am sure you can edit the skript that it works with any usbscsi and doesn't quit once usbscsi0: is inserted, but just pauses as long as usbscsi0: is present.






    [ Editiert durch Zylesea an 2011/1/22 18:15 ]
    --
    http://www.via-altera.de

    Whenever you're sad just remember the world is 4.543 billion years old and you somehow managed to exist at the same time as David Bowie.
    ...and Matthias , my friend - RIP
  • »22.01.11 - 17:10
    Profile Visit Website