Heya Folks,
Anyone got a command / function lying around that will find a USB stick on Mac/Win and return a path to it?
Warm regards,
A.
Recognise a USB stick
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 18
- Joined: Wed Oct 13, 2010 4:44 am
-
- Posts: 111
- Joined: Sun Aug 23, 2009 7:48 am
- Contact:
Re: Recognise a USB stick
I guess that really depends on what kind of "USB-stick" you imply, and what "find" means. On the Mac you can use the system_profiler command via the shell to probe the USB-chain:
:-Håkan
Code: Select all
put shell("system_profiler SPUSBDataType")
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3
Re: Recognise a USB stick
You could try "the volumes". It won't give you info about the type of device but it should list the name of the USB drive.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com