|
-
Jun 5th, 2004, 05:18 PM
#1
Thread Starter
Addicted Member
SysRoot Problem[Resolved]
Last edited by Aphex; Apr 17th, 2009 at 08:53 PM.
-
Jun 5th, 2004, 05:19 PM
#2
Frenzied Member
Change the following line. BTW, SystemRoot returns the drive as well so you don't need that part.
VB Code:
TransferSuccess = GetInternetFile(Inet1, "http://www.website.com/filename.dll", strSysRoot & "\system32")
-
Jun 5th, 2004, 05:23 PM
#3
Thread Starter
Addicted Member
Last edited by Aphex; Apr 17th, 2009 at 08:53 PM.
-
Jun 5th, 2004, 05:29 PM
#4
I've never used GetInternetFile, but shouldn't you have the final filename instead of only the pathname? I mean:
VB Code:
TransferSuccess = GetInternetFile(Inet1, "http://www.website.com/filename.dll", strSysRoot & "\system32\filename.dll")
-
Jun 5th, 2004, 05:33 PM
#5
Thread Starter
Addicted Member
Last edited by Aphex; Apr 17th, 2009 at 08:53 PM.
-
Jun 5th, 2004, 05:44 PM
#6
VB Code:
Private Sub Command1_Click()
Dim strSysRoot As String, Temp As String
On Error Resume Next
strSysRoot = Environ("SystemRoot")
Temp = strSysRoot & "\System32"
Debug.Print Temp
TransferSuccess = GetInternetFile(Inet1, "http://www.website.com/filename.dll", Temp)
If Err Then Debug.Print "Return value: " & TransferSuccess & " | Error " & Err.Number & ": " & Err.Description
End Sub
Check what it says in the debug if it doesn't work.
Edit I also found out from the net you don't need to give a filename, only the path name.
-
Jun 5th, 2004, 05:53 PM
#7
Thread Starter
Addicted Member
Last edited by Aphex; Apr 17th, 2009 at 08:54 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|