help with executable start

Hacking 81 Reputation points
2022-06-18T13:05:16.88+00:00

212701-image.png

I have this .exe in the resources.

Is it possible to run the executable with arguments without saving it in the user computer?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,201 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 86,491 Reputation points
    2022-06-18T14:10:10.737+00:00

    Is it possible to run the executable with arguments without saving it in the user computer?

    This test worked for me (Windows 10 21H1, 32-bit exe inside 32-bit, tested without parameters) :

                byte[] byteExeFile = Properties.Resources.ExeFile;  
                string sHost = Assembly.GetEntryAssembly().Location;  
                CMemoryExecute.Run(byteExeFile, sHost, "");  
    

    with CMemoryExecute.cs
    by replacing SW_HIDE by SW_SHOW

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.