How to run a batch file without displaying the window

Solved
Anonymous user -  
barnabe0057 Posted messages 14431 Registration date   Status Contributeur Last intervention   -

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 réponse

brucine Posted messages 24504 Registration date   Status Membre Last intervention   4 116
 

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
barnabe0057 Posted messages 14431 Registration date   Status Contributeur Last intervention   4 929
 

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
brucine Posted messages 24504 Registration date   Status Membre Last intervention   4 116 > barnabe0057 Posted messages 14431 Registration date   Status Contributeur Last intervention  
 

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
barnabe0057 Posted messages 14431 Registration date   Status Contributeur Last intervention   4 929 > brucine Posted messages 24504 Registration date   Status Membre Last intervention  
 

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

0