Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

' Create a reference to the current directory.

Dim di As New DirectoryInfo("http://mywebsite/")

' Create an array representing the files in the current directory.

Dim fi As FileInfo() = di.GetFiles()

Label1.Text = "The following files exist in the current directory:"

' Print out the names of the files in the current directory.

Dim fiTemp As FileInfo

For Each fiTemp In fi

Label1.Text = Label1.Text & "" & fiTemp.Name

Next fiTemp

 

I get this error message "does not support URL" anybody know a method thats similar to this that would?

Edited by neodammer
  • 2 weeks later...
Posted
What im trying to do via application even possible without asp? I thought it was because all im doing is the exact same thing as the code above except via internet. I understand that most servers have settings preventing the viewing but the site im trying to view "my own" from out of town has permissions that allow for directory viewing.
  • *Experts*
Posted
Im not sure if Im understanding you correctly but you cannot simply access a directory on another computer, even if it would allow for that. You need some kind of a software server running. And no, that class does not support URLs.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...