Results 1 to 7 of 7

Thread: SysRoot Problem[Resolved]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2003
    Posts
    206

    Exclamation SysRoot Problem[Resolved]

    fdfddf
    Last edited by Aphex; Apr 17th, 2009 at 08:53 PM.

  2. #2
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    Change the following line. BTW, SystemRoot returns the drive as well so you don't need that part.

    VB Code:
    1. TransferSuccess = GetInternetFile(Inet1, "http://www.website.com/filename.dll", strSysRoot & "\system32")

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2003
    Posts
    206
    fdfdfdfererer
    Last edited by Aphex; Apr 17th, 2009 at 08:53 PM.

  4. #4
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654
    I've never used GetInternetFile, but shouldn't you have the final filename instead of only the pathname? I mean:

    VB Code:
    1. TransferSuccess = GetInternetFile(Inet1, "http://www.website.com/filename.dll", strSysRoot & "\system32\filename.dll")

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2003
    Posts
    206
    rtrtrtrtrtrt
    Last edited by Aphex; Apr 17th, 2009 at 08:53 PM.

  6. #6
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654
    VB Code:
    1. Private Sub Command1_Click()
    2.     Dim strSysRoot As String, Temp As String
    3.     On Error Resume Next
    4.     strSysRoot = Environ("SystemRoot")
    5.     Temp = strSysRoot & "\System32"
    6.     Debug.Print Temp
    7.     TransferSuccess = GetInternetFile(Inet1, "http://www.website.com/filename.dll", Temp)
    8.     If Err Then Debug.Print "Return value: " & TransferSuccess & " | Error " & Err.Number & ": " & Err.Description
    9. 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.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Mar 2003
    Posts
    206
    rtrtrttrtrtrt
    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
  •  



Click Here to Expand Forum to Full Width