Author Topic: How many Pendrive  (Read 1055 times)

0 Members and 1 Guest are viewing this topic.

josan

  • Mosquito
  • Posts: 15
How many Pendrive
« on: July 23, 2017, 03:34:45 PM »
I want to know through lisp how many pendrive are connected to the pc.

To go through each one and read its physical direction.

Is this possible with lisp?

 

thanks...

PKENEWELL

  • Bull Frog
  • Posts: 318
Re: How many Pendrive
« Reply #1 on: July 26, 2017, 03:45:16 PM »
The Answer is: Not exactly...

Using the (vlax-create-object "Scripting.FileSystemObject") you can get the property "DriveType". A return value of 1 means the Drive is a "Removable" drive. However - there are more things than stick drives that will come up with that designation. Anything that holds storage, such as a phone or an SD drive will also return this value.
"When you are asked if you can do a job, tell 'em, 'Certainly I can!' Then get busy and find out how to do it." - Theodore Roosevelt