After experiencing a lot of down time, We decided to move this site to CrystalTech.com. CrystalTech.com is powered by only the finest Windows servers providing the best performance, reliability, and value anywhere.

 get folder of a network share.

Author Message
cykill
  • Total Posts : 49
  • Scores: 0
  • Reward points : 0
  • Joined: 2/4/2006
get folder of a network share. - Tuesday, April 04, 2006 12:39 PM
0
I have an asp page on a local webserver.  this page is suppose to go to a network share to get the folders but its not working.  it says

Microsoft VBScript runtime
error '800a004c'
Path not found


I have this.
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set d_office=fs.GetFolder("\\smurf\temp\cb\page")

the asp page works if its in the same network share. but  i would like to put this asp page in the local machine.  Any method?  Thanks.
<message edited by cykill on Tuesday, April 04, 2006 12:40 PM>

Snipah
  • Total Posts : 1339
  • Scores: 8
  • Reward points : 0
  • Joined: 11/1/2004
  • Location: Scotland
RE: get folder of a network share. - Tuesday, April 04, 2006 10:38 PM
0
the FileSystemObject does allow both UNC and Drive Letter mapping. Your problem is probably a user privilege issue. You probably need to give the IUSR account privileges to the folder you want to work with.

By default the account used by IIS for anonymous access is IUSR_COMPUTERNAME. So if your computer is named "FRED", then the account would be IUSR_FRED. Right click the folder, select Security, and add the IUSR account.
For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

mcds99
  • Total Posts : 515
  • Scores: 4
  • Reward points : 0
  • Joined: 2/28/2006
RE: get folder of a network share. - Tuesday, April 25, 2006 6:43 AM
0
Now sense the IUSR_'Account' has access to that folder.
 
In a browser IE can \\computer\folder\folder and get to that folder.
 
Not secure.