How do I open a folder in an asp.net environment using vb.net?

A

Aaron

My application will only be used on windows based machines.

I need to open a folder using UNC naming. i.e. \\server\share\folder

I do not need to do anything programatically with the folder like count the
files, or determine permissions, I just need explorer to launch the
specified path.

Ideally it would work something like:
Dim FolderPath as string
Folderpath ="\\server\share\folder"
opendir(folderpath)

I am sure I do not need to use directory or directoryinfo classes, it seems
to me there should be an easy way to launch explorer and pass a path to it.
Let me know....

Any ideas?

Thanks,
Aaron
 
S

Steve C. Orr [MVP, MCSD]

The easiest way would be to have the user click on a hyperlink.
<a href='\\server\share\folder'>click to open folder</a>
 
A

Aaron

Can I complicate things a little?
I am using an imagebutton, but I can't figure out how to lauch a url or
hyperlink. I'm sure it is pretty easy, I am just not seeing the light...
 
S

Steve C. Orr [MVP, MCSD]

Do you need it to be an imagebutton? Is there some reason you need the
postback?

If not, just put an image inside the hyperlink:
<a href='\\server\share\folder'> <img.../> </a>

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
 

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

Staff online

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top