Link to home
Start Free TrialLog in
Avatar of pmacmann
pmacmannFlag for United States of America

asked on

Getting a list of directories/subdirectories on a client machine asp.net

How can I (on a web page in asp.net) get a listing of directories on the client machine?  I want the user to be able to search the local drives on the client machine and finally be able to choose a directory name (which I will then use to do some processing).

Ideally I would like the BROWSE capability when using the <input type=file> to upload files.

Thanks.
SOLUTION
Avatar of Saqib Khan
Saqib Khan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pmacmann

ASKER

OK - thanks... I'll have to think of  another solution.. I need the user to browse to a directory, then I take that directory name and parse out some information and then look in the directory for a specific file... I could probably have the user browse to the file in the directory and then get the directory name from there ...
as I said you can do it

var fso, dir, file;
fso=new ActiveXObject("Scripting.FileSystemObject")
dir=fso.GetFolder("c:\\")

there's whole lot more you can do with FSO

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/jsobjFileSystem.asp