Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Drive Mapping

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Drive Mapping
  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 >>
 Drive Mapping - 1/4/2008 7:44:02 AM   
  LoneRegister

 

Posts: 2
Score: 0
Joined: 1/4/2008
Status: offline
I am having an interesting issue.

I have the following code:

  'We've uploaded the picture - now copy it to the 123 directories across our servers
  'Now copy the source to the other systems cache folders
     On Error resume next
         objNetwork.RemoveNetworkDrive "L:"
         objNetwork.RemoveNetworkDrive "M:"
         objNetwork.RemoveNetworkDrive "N:"
     on error goto 0

      objNetwork.MapNetworkDrive "L:", "\\WEBa1\123", false
      objNetwork.MapNetworkDrive "M:", "\\WEBa2\123", false
      objNetwork.MapNetworkDrive "N:", "\\WEBa3\123", false

      Set filesys = CreateObject("Scripting.FileSystemObject")
    
      filesys.CopyFile strFolder & FileName, "L:\" & FileName, true
      filesys.CopyFile strFolder & FileName, "M:\" & FileName, true
      filesys.CopyFile strFolder & FileName, "N:\" & FileName, true
     
      filesys.deletefile strFolder & FileName, true
     
      objNetwork.RemoveNetworkDrive "L:"
      objNetwork.RemoveNetworkDrive "M:"
      objNetwork.RemoveNetworkDrive "N:"

If I set our system IIS to AspExecuteInMTA = "1" - the above code fails

If I set our system IIS to AspExecuteInMTA = "0" - The above code works.

I need our system to run with AspExecuteInMTA = "1" as the perfomance benefits are huge.  Anyone have suggestions or comments on how I could do the network copies successfully?

Kevin
 
 
Post #: 1
 
 RE: Drive Mapping - 1/5/2008 5:16:56 AM   
  webber123456

 

Posts: 37
Score: 0
Joined: 9/20/2007
Status: offline
This is not ASP code. 

ASP has nothing to do with removing network drives as that would be a security risk. 

I suspect that is your problem.

(in reply to LoneRegister)
 
 
Post #: 2
 
 RE: Drive Mapping - 1/7/2008 4:30:00 AM   
  LoneRegister

 

Posts: 2
Score: 0
Joined: 1/4/2008
Status: offline
The error is

"Path not found" on the line:

filesys.CopyFile strFolder & FileName, "L:\" & FileName, true


If I set our system IIS to AspExecuteInMTA = "1" - the above code fails

If I set our system IIS to AspExecuteInMTA = "0" - The above code works.

Does anyone have any idea why the AspExecuteInMTA would cause this kind of problem?

(in reply to webber123456)
 
 
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 >> Drive Mapping 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