SC get("drives",

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

SC get("drives",

Post by serendipity »

I have 3 external drives that are removable, but this script:

Code: Select all

text get ("drives",2);
returns nothing. While with parameter for fixed drives-3, returns all drives, local drives plus external ones.

Is there a way for XY to tell me which drive is USB and which is not?

btw, I am trying all this to assign specific icons to local vs external drives for easy identification.

admin
Site Admin
Posts: 67247
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: SC get("drives",

Post by admin »

No chance, I pass on what Windows reports.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: SC get("drives",

Post by serendipity »

OK, i thought you could get that info somehow programatically.
After some searching seems like diskpart can get this info, not sure how much control you have over this. anyway, lo-prio. no big deal.

Post Reply