How to get freespace on network drive from ASP.NET page?

D

Derrick

Good Morning!

Is there a simple way to get freespace on a network drive, without going
thru the hoops of setting up WMI? Something in the basic System.IO package?

I have a basic file uploads web, that already runs impersonating a specific
AD user, with rights to a netowork drive. Even though I am impersonating the
user, and the user in interactive mode has a drive mapped to the upload file
dir, I don't get that mapped dir when calling Directory.LogicalDrives() from
the asp.net page (where i could then leverage DirectoryInfo.freespace)

Thanks in advanace!

Derrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top