Error Viewing network folders using SpecialFolders.My computer

S

SeeBee

I am trying to view the folders listed on MyComputer programatically. I am
able to view the subfolders under MyDocuments using SpecialFolders.Personal
and but when I use SpecialFolders.My computer I get an error as follows:

An unhandled exception of type 'System.ArgumentException' occurred in
mscorlib.dll
Additional information: The path is not of a legal form.

I suspect this is because I am hooked to my company network and do not have
the correct permissions set to read the network drives.

How is it possible to view all directory paths?
 

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

Top