.NETJiNi@jigneshdesai.com  
  Home |  .NET<1.0 to 3.5> Forums Blogs |  Other Technologies Skip Navigation Links  | Quiz Contest   dotnetJini Training |   Software Development 
   
Topic : Code for getting off a remote share. 
Author : CodeHUNT Total Visits: 163
Published Date: Wednesday, March 15, 2000  

Few things to remember if this share is on another computer in the same domain.  The anonymous account used by your IIS web needs to be an domain user account and have rights to that share. 

<% @language="vbscript" %>
<% folderspec = ("\\Computername\SshareName$")

Dim fs, f, f1, s, sf
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder(folderspec)
Set sf = f.SubFolders
For Each f1 In sf
s = s & f1.name
s = s & vbCrLf
Next
Response.Write s
%>









 
   
   
   
Add URL | About ME Privacy Policy | Legal Disclaimer

Copyright (C) 2004 -2008 JigneshDesai.com. All rights reserved