Jump to content

Archived

This topic is now archived and is closed to further replies.

valentin

How do I?

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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.......



Share this post


Link to post
Share on other sites
I'm assuming you're using Windows, here is an option...
[code]<?php
$drives = shell_exec("fsutil fsinfo drives");
?>[/code]

Share this post


Link to post
Share on other sites
Thank you both for your answers! SemiApocalyptic your code works, it returns my drives, so I once again thank you very much!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.