Photo Gallery Member List Search Calendars FAQ Ticket List Log Out



get folder of a network share.

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,33089
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> get folder of a network share.
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 get folder of a network share. - 4/4/2006 11:39:34 AM   
  cykill

 

Posts: 48
Score: 0
Joined: 2/4/2006
Status: offline
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 -- 4/4/2006 11:40:52 AM >
 
 
Post #: 1
 
 RE: get folder of a network share. - 4/4/2006 9:38:14 PM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
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

(in reply to cykill)
 
 
Post #: 2
 
 RE: get folder of a network share. - 4/25/2006 5:43:56 AM   
  mcds99


Posts: 445
Score: 4
Joined: 2/28/2006
Status: offline
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.

(in reply to cykill)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> get folder of a network share. Page: [1]
Jump to:





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
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts