Login | |
|
 |
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
|
|
| |
|
|
|
|
|