Run and .exe in resources? menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    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)
    Neth'Zul, I'm going to assume you've built the other exe into your program via the Resources, and not just a string variable to the program location. In which case, you can open the program as a memory stream.

    So search for how to run an application from a MemoryStream. (Sorry, no code here, as I don't have the time right now to write it.)

    Run and .exe in resources?
  2. #17
    Facist's Avatar Member
    Reputation
    16
    Join Date
    Sep 2008
    Posts
    135
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The majority of the people helping don't understand what the OP is saying. He doesn't want to execute a file on a drive, but rather inside the program. The program's resources are where files are put that are apart of one exe.

  3. #18
    1814's Avatar Active Member
    Reputation
    21
    Join Date
    Mar 2008
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you have to extract the ressource first
    Code:
    Dim data() As Byte = My.Resources.Neth
    Dim file As New System.IO.FileStream("Neth.exe", IO.FileMode.Create)
    file.Write(data, 0, data.Length)
    file.Close()
    after that you can execute it with
    Code:
    Shell(My.Computer.FileSystem.CurrentDirectory & "\Neth.exe")

  4. #19
    Y R U A NUB ?'s Avatar Banned
    Reputation
    103
    Join Date
    Nov 2007
    Posts
    436
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unfortunately you can not add an EXE to the resources.. You could place the file in the same folder and do:
    Code:
    System.Diagnostic.Process.Start("file.exe")
    , though.

  5. #20
    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)
    Originally Posted by 1814 View Post
    you have to extract the ressource first
    Code:
    Dim data() As Byte = My.Resources.Neth
    Dim file As New System.IO.FileStream("Neth.exe", IO.FileMode.Create)
    file.Write(data, 0, data.Length)
    file.Close()
    after that you can execute it with
    Code:
    Shell(My.Computer.FileSystem.CurrentDirectory & "\Neth.exe")
    I was wondering how y'do that. Thanks! +Rep

  6. #21
    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)
    Originally Posted by Y R U A NUB ? View Post
    Unfortunately you can not add an EXE to the resources.. You could place the file in the same folder and do:
    Code:
    System.Diagnostic.Process.Start("file.exe")
    , though.
    If you don't know what you're talking about, don't post.

    You can put literally ANYTHING in a resource file. It is all saved to a byte array in the end, which you can read out in either a MemoryStream, or just the byte array.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Epic Dungeon Run and Dungeon Delve Chest Loot Issues
    By llammahed in forum Neverwinter
    Replies: 3
    Last Post: 06-11-2013, 10:57 AM
  2. [Misc] Running and Growing a Server
    By Talrain in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 03-12-2012, 05:49 PM
  3. Bot Running And Going AFK
    By DarkLinux in forum WoW Memory Editing
    Replies: 46
    Last Post: 08-12-2010, 05:40 AM
  4. How to Run and Dance at the same time![Useless]
    By XFiFiX in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 04-04-2008, 03:06 AM
  5. Connection issue, server is running and realm list is correct.
    By Ghosthopper in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 01-31-2008, 12:40 PM
All times are GMT -5. The time now is 11:01 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