Just can't stay away
Joined: 2006/12/1 18:01 Last Login
: Yesterday 23:02
From Copenhagen, Denmark
Group:
Registered Users
|
Why do you want to detect specifically that an USB stick is inserted? That's not very flexible. (And judging by your code sample, it would even have to be the first USB disk inserted, since you look specifically for USB0:)
Are you asking the user to make a particular file available, or is your program going to scan a volume, looking for particular types of files or something?
In any case, maybe you should let the user direct the program to the file or volume you need by means of a file requester.
That concept of having the system do something automagically when inserting a medium is contradicting the usual AmigaOS goal of giving the user control.
Just some thoughts for consideration.
Best regards,
Niels
|