P
P
Pavel2020-01-02 12:12:21
cmd/bat
Pavel, 2020-01-02 12:12:21

How to start a service from a shortcut in startup?

there is a task to start the service not in the scheduler, but through the autoload folder win 10 x64
created a bat file, but when you start you can see the cmd window and notifications
, what are the options?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2020-01-02
@pfg21

I learn - google "how to run the windows console in stealth mode"
for example https://forum.ixbt.com/topic.cgi?id=22:59101 options on all types of windows shell cuts.

W
wisgest, 2020-01-02
@wisgest

Try

set this shortcut to execute in a hidden window - this cannot be done using standard user interface tools, but it can be done programmatically, for example, using a simple script, passing the shortcut to it as an argument (by dragging it onto the icon of this script):
Set WshShell = CreateObject("WScript.Shell")
For Each Argument In WScript.Arguments
  Set WshShortcut = WshShell.CreateShortcut(Argument)
  WshShortcut.WindowStyle = 0
  WshShortcut.Save
Next

Console applications launched with such a shortcut run in an invisible window...

forum.script-coding.com/viewtopic.php?pid=52233#p52233

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question