A
A
Asriel2022-01-15 22:08:45
Windows
Asriel, 2022-01-15 22:08:45

How can I hide the command line?

Hello. I wrote a script for the command line (bat). I want it to start when the system is turned on, but the command line window does not appear. How can I do it?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Alexander, 2022-01-15
@Asriel

Create a .vbs file

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "<путь к .bat файлу>" & Chr(34), 0
Set WshShell = Nothing

and add it to startup.

Z
Zhbert, 2022-01-15
@Zhbert

There will be dances with a tambourine, sort of.

R
rPman, 2022-01-15
@rPman

task scheduler - you create a task with a trigger at the start of the computer
there is an option - check if the user is loaded or not, if you enable that window should not be shown (or vice versa turn it off) there is also an option - interactive (I already forgot how everything looks there)

I
iBird Rose, 2022-01-15
@iiiBird

google about NirCmd

S
Stalker_RED, 2022-01-16
@Stalker_RED

Another alternative is the runhiddenconsole utility.

A
Alexander Dasler, 2022-01-22
@PKZV

Convert .bat to .exe
BatToExeConverter
You can add exe to startup or create a task in task scheduler.
All the best!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question