Using asp.net I'm trying to have a list directory for files located in a shared drive s:/
The webpage is stored on a local web server and i want it to show files/folders in the shared drive.
I'm able to do it if the files are located on the same server but I get a error message if i try to have a list directory in the shared drive.
's:/test' is not a valid virtual path.
Everyone can access the shared drive so there are no permission issues.
%@ Page Language="VB" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.IO" %>
<script language="VB" runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
Dim strThisPage As String = Request.ServerVariables("URL")
dim strRootPath As String = "s:/test"
Dim strPath As String
Dim strFullPath As String
Dim myRootDirInfo As DirectoryInfo
View Complete Post