Paladin of the Pegasos
Posts: 1919 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
if exists "usbscsi0:" noreq >nil:
execute usbscsi0:myskript ; put here the name of the skript
echo "1" >ram:env/myvar
if not exists "ram:env/myvar"
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 ]
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