get folder of a network share.

Author Message
cykill

  • Total Posts : 49
  • Scores: 0
  • Reward points : 0
  • Joined: 2/4/2006
  • Status: offline
get folder of a network share. - Tuesday, April 04, 2006 12:39 PM ( #1 )
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 : 1333
  • Scores: 6
  • Reward points : 0
  • Joined: 11/1/2004
  • Location: Netherlands
  • Status: offline
RE: get folder of a network share. - Tuesday, April 04, 2006 10:38 PM ( #2 )
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 : 503
  • Scores: 4
  • Reward points : 0
  • Joined: 2/28/2006
  • Status: offline
RE: get folder of a network share. - Tuesday, April 25, 2006 6:43 AM ( #3 )
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.

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.
Jump to:

Current active users
There are 0 members and 1 guests.
Icon Legend and Permission
  • New Messages
  • No New Messages
  • Hot Topic w/ New Messages
  • Hot Topic w/o New Messages
  • Locked w/ New Messages
  • Locked w/o New Messages
  • Read Message
  • Post New Thread
  • Reply to message
  • Post New Poll
  • Submit Vote
  • Post reward post
  • Delete my own posts
  • Delete my own threads
  • Rate post

© 2000-2009 ASPPlayground.NET Forum Version 3.6