USB Key

Share your advanced PureBasic knowledge/code with the community.
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

printers with cardslots
I am not even using that, I don't have a printer :(
killfreak
New User
New User
Posts: 7
Joined: Fri May 12, 2006 3:27 pm

Post by killfreak »

Was looking for this code. But I got a strange result. It returns present for my thumbdrive (normal USB flash drive), but absent for my external 3.5" USB hard disk.

It's just a normal hard disk in a USB enclosure, no special features or anything. It shows up as a mass storage device which can be "stopped" as normal using the icon in the system tray. Formatted in NTFS.

Is it supposed to be that way? Am using Win XP SP2.
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

@killfreak

Welcome to the forums... and um.... I would change your username because...

"I do not think it means what you think it means."
Image
Image Image
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

Is it supposed to be that way ?
Yes i think :wink:
killfreak
New User
New User
Posts: 7
Joined: Fri May 12, 2006 3:27 pm

Post by killfreak »

Straker wrote:@killfreak

Welcome to the forums... and um.... I would change your username because...

"I do not think it means what you think it means."
haha tks for the welcome. Anyway it's just an old online FPS nickname from several years back, too lazy to get used to a new one.

I just find it strange coz my Ext USB HDD should be considered a "removable media" too. Oh well, too bad i guess.
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Well, as long as freak doesn't mind....
Image Image
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

It detected my external USB drive OK, but still detected it even with the drive disconnected from the 'puter.

BTW, Droopy, when is your new library for PB v4 gonna be ready?
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

I'm waiting for optional parameters in tailbite.
I'm going to put the help file in the source code.
An utility ( Todo ) extract the help and make a chm
when is your new library for PB v4 gonna be ready?
I don't know :oops:
I have to do this utility first
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

Straker wrote:Well, as long as freak doesn't mind....
AFAIK freak changed his name to fr34k, so killfreak is safe :P
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

I guess Freak prefers 'killfreak' more than 'lovefreak' :P
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
oakvalley
User
User
Posts: 77
Joined: Sun Aug 08, 2004 6:34 pm
Location: Norway
Contact:

Re: USB Key

Post by oakvalley »

Too bad that any of these examples here will also say a regular 3.5" Floppy Disk old-school style to become a Flash/USB Key/Drive too :-)
Regards Stone Oakvalley
Currently @ PB 5.70
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: USB Key

Post by IdeasVacuum »

IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
GeBonet
Enthusiast
Enthusiast
Posts: 135
Joined: Fri Apr 04, 2008 6:20 pm
Location: Belgium

Re: USB Key

Post by GeBonet »

I have Xp Pro and the answers is "Present" and debug give "G: Drive is a Removable Drive"
that correct :D
Sorry for my english :wink: ! (Windows Xp, Vista and Windows 7, Windows 10)
Post Reply