Connect to mapped drive

V

Vanessa

hi everyone,

I have mapped a drive in our IIS, but I don't know how to connect to it from
ASP.
I would like to place files (like images files) to the mapped drive
T:\XXX\YYY and display files from there.

I've tried using Server.MapPath, but when I put T:\XXX\YYY as parameter, it
will say it requires virtual path but not physical path.

Then I tried using:
Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject")
Set MyFolder=MyFileObject.GetFolder("T:\XXX\YYY")
but it will say Path not found.

Please advise. Thanks!
 
J

Jeff Cochran

hi everyone,

I have mapped a drive in our IIS, but I don't know how to connect to it from
ASP.
I would like to place files (like images files) to the mapped drive
T:\XXX\YYY and display files from there.

I've tried using Server.MapPath, but when I put T:\XXX\YYY as parameter, it
will say it requires virtual path but not physical path.

Then I tried using:
Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject")
Set MyFolder=MyFileObject.GetFolder("T:\XXX\YYY")
but it will say Path not found.

Please advise. Thanks!

Create a virtual folder in IIS pointing to the shared drive. Make
sure the correct accounts have access to the share. Remember that the
IUSR/IWAM accounts are local accounts, so unless you change them to
domain accounts you need to accomodate them in the shared drive as
local accounts.

Jeff
 
V

Vanessa

Thanks Jeff, it works! :)

Jeff Cochran said:
Create a virtual folder in IIS pointing to the shared drive. Make
sure the correct accounts have access to the share. Remember that the
IUSR/IWAM accounts are local accounts, so unless you change them to
domain accounts you need to accomodate them in the shared drive as
local accounts.

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top