DebateFort - Where Warriors Come To Debate
RAGECRY - Funny, Amusing, Interesting, Trending & Viral Videos and Images
GameOrc - Free Flash Games Online
Results 1 to 7 of 7
  1. #1
    ilikesmeagol and always will...
    MPGH Member
    Amkay's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Underground...
    Posts
    1,009
    Reputation
    80
    Thanks
    353
    My Mood
    Sneaky

    Dropping Specified .exe File

    Hello, i was wondering , is it possible to create a form with a button that when we click it, it creates a .exe program in another project at desktop. im not so sure if you got what i mean but i will give more info if you ask. thanks in advance.

  2. The Following User Says Thank You to Amkay For This Useful Post:

    GorcK (05-13-2012)

  3. #2
    Former Staff
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,750
    Reputation
    445
    Thanks
    1,486
    My Mood
    Amused
    Yup, you need to explain clearly. I don't really get it.
    @ilikesmeagol

  4. #3
    Wave to yesterday
    Former Staff
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Somewhere where the Sunlight hurts my eyes.
    Posts
    5,652
    Reputation
    865
    Thanks
    4,817
    My Mood
    Mellow
    Just add the .exe as a resource on your project. Then write that resource to the desktop path using System****.File.WriteAllBytes()

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    So tear the pieces from the bone,
    Like you've torn us apart.
    We build bridges, just for burning


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  5. #4
    Threadstarter
    ilikesmeagol and always will...
    MPGH Member
    Amkay's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Underground...
    Posts
    1,009
    Reputation
    80
    Thanks
    353
    My Mood
    Sneaky
    @Hassan ok lets say i made a program named p1. i want to make another one named p2 that has a button b1. i want each time i press b1, p1 is created on desktop. i think its clear now even if its a little complicated.

    @Jason ok but can you tell me how to do that or is there a tut about it?

  6. #5
    Former Staff
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,750
    Reputation
    445
    Thanks
    1,486
    My Mood
    Amused
    @ilikesmeagol : Alright. Do what Jason said. First, add the executable you want to be created on the desktop. Then, add these lines to your button:

    Code:
    Dim Filename As String = My.Computer.FileSystem.SpecialDirectories.Desktop & "\ExeNameHere.exe"
    IO.File.WriteAllBytes(Filename,My.Resources.ResourceName)
    This code will create the executable you added to your resources on the desktop. Just replace "ExeNameHere" with the desired name. Also, replace ResourceName with the name of the executable you added to resources.

  7. The Following User Says Thank You to Hassan For This Useful Post:

    tynab (05-01-2012)

  8. #6
    Threadstarter
    ilikesmeagol and always will...
    MPGH Member
    Amkay's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Underground...
    Posts
    1,009
    Reputation
    80
    Thanks
    353
    My Mood
    Sneaky
    @Hassan yeah it worked thanks man as always this section is the best for asking a questions. and @Jason thanks for help too

  9. #7
    Former Staff
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,750
    Reputation
    445
    Thanks
    1,486
    My Mood
    Amused
    Good and NP.

    Marked solved.

Similar Threads

  1. How to edit and compile a .EXE file?
    By Ragehax in forum Combat Arms Help
    Replies: 5
    Last Post: 09-07-2009, 03:53 AM
  2. engine.exe file please
    By s911turbo in forum Combat Arms Hacks & Cheats
    Replies: 11
    Last Post: 04-13-2009, 03:14 PM
  3. MCAPUBHACK doesn't have .exe file
    By Bunneh in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 12-19-2008, 04:21 PM
  4. Can't make a .exe file with VB.
    By ltkort213 in forum WarRock - International Hacks
    Replies: 9
    Last Post: 06-09-2007, 09:09 AM
  5. how to safe a standard exe file (trainer) with vb6??
    By 123456789987654321 in forum WarRock - International Hacks
    Replies: 7
    Last Post: 06-08-2007, 08:21 PM