How to run a batch file without displaying the window

Solved
Anonymous user -  

Hello, I would like to know how to open a batch file without displaying the command prompt window and especially in the foreground.

That is to say, the window does not appear and I have already tried VBS scripts but I can no longer write in the window, and I want the command prompt window to be brought to the foreground while remaining invisible when I open a program.

My goal would be to create a batch file where it is always possible to write in it without seeing it.

1 answer

  1. Hello,

    I don't understand anything: to launch a batch file without seeing the window, the most common solution is to create a shortcut that runs in minimized mode in its properties.

    But if the command prompt is in the foreground, by definition, it is not invisible.

    If we want to write in a batch file without opening it, we redirect the commands from another: in the first batch or at the command line, I can for example write echo it's nice>test.cmd

    0
    1. Hello brucine,

      I have the feeling that the purpose of the request is to create a keylogger, without further explanations this seems to be the most likely scenario.

      0
    2. @barnabe0057

      Hello,

      Hmm...

      The request is indeed not very clear, but you are my witness that, even if it were about implementing a keylogger or some other piece of junk, if it is found online, adapting and making a batch work, whatever it may be, is not ready to use and requires a lot of learning and testing.

      0
    3. @brucine

      I confirm that the implementation requires a minimum of knowledge; it is not within the reach of just anyone.

      0