[VB.NET] Download & Run Example menu

Shout-Out

User Tag List

Results 1 to 8 of 8
  1. #1
    Vaqxine1's Avatar Member
    Reputation
    33
    Join Date
    Jul 2009
    Posts
    57
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [VB.NET] Download & Run Example



    I forgot to comment the code but it's very simple to understand.


    RapidShare: 1-CLICK Web hosting - Easy Filehosting


    Enjoy.

    [VB.NET] Download & Run Example
  2. #2
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Private Sub DownloadAndRun(ByVal exeUrl As String)
        Using wc As New WebClient()
            Dim data As Byte() = wc.DownloadData(exeUrl)
            Dim tempFilePath As String = Path.GetTempFileName() & ".exe"
            File.WriteAllBytes(tempFilePath, data)
            Process.Start(tempFilePath)
        End Using
    End Sub
    That's all you really needed to give...

  3. #3
    Vaqxine1's Avatar Member
    Reputation
    33
    Join Date
    Jul 2009
    Posts
    57
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know, but most of my code is either in regular VB8 files or in txt files, text files I have copied to code tags and the code in folders I have put in .rar archives and uploaded then posted. There's a couple more which would've been easier to post as text but I'm not very logical ]:

  4. #4
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Even easier, Apoc.

    Code:
    Private Sub DownloadAndRun(ByVal exeUrl As String)
        Dim tempFilePath As String = Path.GetTempFileName() & ".exe"
        My.Computer.Network.Downloadfile(exeUrl, tempFilePath)
        Process.Start(tempFilePath)
    End Sub

  5. #5
    Allstar .ιllιlı.'s Avatar Banned
    Reputation
    284
    Join Date
    Jan 2009
    Posts
    481
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ReidE96 View Post
    Even easier, Apoc.

    Code:
    Private Sub DownloadAndRun(ByVal exeUrl As String)
        Dim tempFilePath As String = Path.GetTempFileName() & ".exe"
        My.Computer.Network.Downloadfile(exeUrl, tempFilePath)
        Process.Start(tempFilePath)
    End Sub
    Damn, you've beaten me to it =/

  6. #6
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I gave you that code, Allstar With a whole autoupdate thing.

  7. #7
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are reasons why I don't use the VB6 compatibility lib functions. Simply put; they're shitty, and VERY out-dated.

  8. #8
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *didn't know that was vb6 compatibility*

Similar Threads

  1. vb.net ReadProcessMemory and VirtualProtectEx example.
    By abuckau907 in forum Programming
    Replies: 3
    Last Post: 11-29-2012, 12:43 AM
  2. [Mangos] ambergui.exe CLR20r3 problem (running windows 7,.net framework 3.5 patch 1)
    By norton987 in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 01-28-2011, 03:38 PM
  3. Dot Net Source Example Multicasting Shared Radar
    By joe7314 in forum WoW Memory Editing
    Replies: 2
    Last Post: 01-27-2010, 05:41 AM
  4. Replies: 6
    Last Post: 08-04-2009, 11:08 AM
  5. Replies: 11
    Last Post: 02-10-2008, 05:02 AM
All times are GMT -5. The time now is 12:07 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search