Computer Science Canada detecting drives in turing |
Author: | JayLo [ Sat Jun 07, 2003 11:04 pm ] |
Post subject: | detecting drives in turing |
is there a way to find out how many drives on a computer there are and their corresponding letters? |
Author: | Dan [ Sat Jun 07, 2003 11:35 pm ] |
Post subject: | |
off the top of my head i know of no easy way of doing it, you may beable to use the dir comands to check to see if a driver existe by trying to open it then seeing if you get a good value... |
Author: | void [ Sun Jun 08, 2003 10:32 am ] |
Post subject: | |
basically just run all the letters from a to z as drives and keep a record in an array of what kind of value it returns...then do whatever you want now that u know which ones exist and which ones dont.... EDIT: Dan suggested the same thing...i just never bothered to read it when i posted this |
Author: | Andy [ Sun Jun 08, 2003 1:02 pm ] |
Post subject: | |
ya just have a for loop for i:65..90 end for and just use chr(i) as a drive and open files |
Author: | Catalyst [ Sun Jun 08, 2003 2:23 pm ] | ||
Post subject: | |||
this detects drives it wont detect the floppy or cd drives unless there is somthing in them
|
Author: | Andy [ Sun Jun 08, 2003 4:25 pm ] |
Post subject: | |
damn, got shutdown by catalyst once again... |
Author: | JayLo [ Sun Jun 08, 2003 8:05 pm ] |
Post subject: | |
lol, he's so leet. he's catalyst. thanks a bunch, dude. |
Author: | Andy [ Sun Jun 08, 2003 8:12 pm ] |
Post subject: | |
ugh, sucking upers, go catalyst, damn, y is he so good, catalyst come to massey, we need smart ppl |
Author: | JayLo [ Mon Jun 09, 2003 9:50 pm ] |
Post subject: | |
gotta love sucking up! |
Author: | Andy [ Tue Jun 10, 2003 5:38 pm ] |
Post subject: | |
ya but u should suck up to somewhere useful like to tony or dan or even the psycho mod |
Author: | JayLo [ Tue Jun 10, 2003 9:14 pm ] |
Post subject: | |
please, do explain "the psycho mod"? flame him up, yo. |
Author: | Andy [ Wed Jun 11, 2003 3:35 pm ] |
Post subject: | |
no Asok, i said i was sorry AHHHHHHHHHHHHHHHHHHh NOT THE FLAME THROWER!!!!!!!!!!!!!!!! |