Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


RE: copy files from network drive to local computer without mapping

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: copy files from network drive to local computer without mapping
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: <<   < prev  1 [2]
Login
Message << Older Topic   Newer Topic >>
 RE: copy files from network drive to local computer wit... - 3/12/2008 1:09:11 AM   
  dslider

 

Posts: 49
Score: 0
Joined: 1/23/2008
Status: offline
yes....IIS

(in reply to ebgreen)
 
 
Post #: 21
 
 RE: copy files from network drive to local computer wit... - 3/12/2008 1:11:42 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Then you would need to work with the IIS admins to get it setup then you might be able to use a get request from the server.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to dslider)
 
 
Post #: 22
 
 RE: copy files from network drive to local computer wit... - 3/12/2008 1:12:51 AM   
  dslider

 

Posts: 49
Score: 0
Joined: 1/23/2008
Status: offline
How would I go about requesting the http page in my script to pull the cert?  how would it pull the cert?

(in reply to ebgreen)
 
 
Post #: 23
 
 RE: copy files from network drive to local computer wit... - 3/12/2008 1:25:16 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Here is how you would pull a text file. It may not work for a cert. You may have to get it as a stream first, but this should get you going in the right direction:


Option Explicit
Dim strNetLoc
Dim strLocalLoc
Dim oXMLHttp : Set oXMLHttp = createobject("msxml2.xmlhttp")
strNetLoc = "http://www.ietf.org/rfc/rfc42.txt"
strLocalLoc = "C:\Temp\rfc.txt"
oXMLHttp.open "get", strNetLoc, False
oXMLHttp.send
CreateObject("Scripting.FileSystemObject").CreateTextFile(strLocalLoc, True).Write oXMLHttp.responseText

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to dslider)
 
 
Post #: 24
 
 
Page:  <<   < prev  1 [2]
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: copy files from network drive to local computer without mapping Page: <<   < prev  1 [2]
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