Jump to content


Photo

How do I?


  • Please log in to reply
3 replies to this topic

#1 valentin

valentin
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 14 July 2006 - 05:43 PM

How can I tell how many drives a computer has and their names (for example my computer has 8 drives a: c: d: ... i:)?
I thank you for your pacience!

#2 jvrothjr

jvrothjr
  • Members
  • PipPipPip
  • Advanced Member
  • 300 posts
  • LocationOhio

Posted 14 July 2006 - 07:51 PM

First a few question for you.

1) local drive letters?????  or are some of them network drives?

2) do you want the server side drive letters or the client side drive letters?

3) if network drive letters what and how are you running for your http server software?????

Sry you asked a loaded quesstion...

Because

say if some of them are network drive letters and your runnig say Apache as a service Apache does not have the ability to use the network drive letters. because the service is loaded before the network there for Apache cant see them.......




If you understand everything you know nothing!

http://rcchjr.awardspace.com/

#3 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 14 July 2006 - 08:08 PM

I'm assuming you're using Windows, here is an option...
<?php
$drives = shell_exec("fsutil fsinfo drives");
?>


#4 valentin

valentin
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 14 July 2006 - 11:53 PM

Thank you both for your answers! SemiApocalyptic your code works, it returns my drives, so I once again thank you very much!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users