S
S
stugarin2021-03-01 08:21:08
cmd/bat
stugarin, 2021-03-01 08:21:08

How to create a task via schtasks so that it runs in minimized mode?

You need to create a start notepad task on the command line so that it starts in minimized mode without the BAT file . I understand that the task is created like this:

schtasks /create /sc once /tn note /tr notepad.exe /st 00:00

And running the program in minimized mode:
start /min notepad

It seems to me that you need to combine the two commands in some way, but I have no idea how. But if this is done through other commands, then please tell me which ones.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Yurchenkov, 2021-03-01
@EPIDEMIASH

start /min notepad | schtasks /create /sc once /tn note /tr notepad.exe /st 00:00

Tried like this?

S
stugarin, 2021-03-02
@stugarin

schtasks /create /sc once /tn note /tr "cmd.exe /C start /min notepad" /st 12:41

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question