Hi Robb,
Thank you for posting in MSDN managed newsgroup!
For security concerns, services cannot use drives mapped via the credentials supplied by another logged on user. In IIS 5.0, you could potentially
get this to work, but it is not recommended. In Windows XP, Windows 2003 Server, and future versions of Windows, services cannot use these
mapped drives. For more information, see this Knowledge Base article:
INFO: Services and Redirected Drives
http://support.microsoft.com/default.aspx?scid=kb;en-us;180362&sd=tech
You can use FileSystemObject scripting component to connect to the remote folder with the UNC name, for example \\testBox\e$\testFolder. I
write one sample code for you.
'Code begin---------------------------------------------------------
Dim objFS, objFld, objSubFld, folderName
'create one random folder name
folderName = "hello" & 10000*Rnd
set objFS = Server.CreateObject("Scripting.FileSystemObject")
Set objFld = objFS.GetFolder("\\testBox\e$\testFolder")
Set objSubFld = objFld.SubFolders
'Create the new folder for you
objSubFld.Add(folderName)
'Code end-----------------------------------------------------------
Please feel free to let me know if you have any further questions.
Does this answer your question? Thank you for using Microsoft NewsGroup!
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.