|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
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
%>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|