S
Stephen Last
Hi all,
I have a problem using FSO with a mapped drive.
I have mapped x: on our Intranet server to a folder on one of our file
servers. The folder contains user home directories. I want to be able to
copy the contents from one home dir, to another, to allow a user of a
temp account to transfer all their files and folders to their real
account, all from our Intranet.
When I use the following:
Set FileSys = CreateObject("Scripting.FileSystemObject")
strDriveName = "x"
If FileSys.DriveExists(strDriveName) Then
Response.Write strDriveName & " drive is there..."
Else
Response.Write strDriveName & " drive is NOT there..."
End If
Set FileSys = Nothing
It tells me the drive does exist, great! But when I use:
Set FileSys = CreateObject("Scripting.FileSystemObject")
strFolderName = "x\temp-SL-1\"
If FileSys.FolderExists(strFolderName) Then
Response.Write strFolderName & " is there..."
Else
Response.Write strFolderName & " is NOT there..."
End If
Set FileSys = Nothing
It can’t seem to see the folder, but the folder is defiantly there.
Does FSO have a problem working with mapped drives? Can anyone help?
Thanks,
Steve
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
I have a problem using FSO with a mapped drive.
I have mapped x: on our Intranet server to a folder on one of our file
servers. The folder contains user home directories. I want to be able to
copy the contents from one home dir, to another, to allow a user of a
temp account to transfer all their files and folders to their real
account, all from our Intranet.
When I use the following:
Set FileSys = CreateObject("Scripting.FileSystemObject")
strDriveName = "x"
If FileSys.DriveExists(strDriveName) Then
Response.Write strDriveName & " drive is there..."
Else
Response.Write strDriveName & " drive is NOT there..."
End If
Set FileSys = Nothing
It tells me the drive does exist, great! But when I use:
Set FileSys = CreateObject("Scripting.FileSystemObject")
strFolderName = "x\temp-SL-1\"
If FileSys.FolderExists(strFolderName) Then
Response.Write strFolderName & " is there..."
Else
Response.Write strFolderName & " is NOT there..."
End If
Set FileSys = Nothing
It can’t seem to see the folder, but the folder is defiantly there.
Does FSO have a problem working with mapped drives? Can anyone help?
Thanks,
Steve
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!