Starting a program minimized from the registry

G

Guest

I have placed a shortcut to an executable into the Startup folder and I have
right clicked on to set it to run minimized.but it did not work.



Then I added it to the
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] key in
the registry and it still starts in "normal window" mode!



I think that there should me a switch in the command line that will force it
to start minimized.



Dose anybody know what it is and the syntax? I would imagine that a minus
sign or a forward slash is required with a switch.



The String Value that I have in the Run Key of the registry is "Adaptec
CIO"="C:\\Program Files\\Adaptec\\CIO Management Software\\ciocnsl.exe"



Thanks.
 
T

Torgeir Bakken \(MVP\)

I have placed a shortcut to an executable into the Startup folder and I have
right clicked on to set it to run minimized.but it did not work.

Then I added it to the
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] key in
the registry and it still starts in "normal window" mode!

I think that there should me a switch in the command line that will force it
to start minimized.

Dose anybody know what it is and the syntax? I would imagine that a minus
sign or a forward slash is required with a switch.

The String Value that I have in the Run Key of the registry is "Adaptec
CIO"="C:\\Program Files\\Adaptec\\CIO Management Software\\ciocnsl.exe"
Hi

Put this in Run in registry (note that you need the quotes around the
program path if it has spaces):

cmd.exe /c start /min "path to some program here"
 
K

Kelly

Added note: It can also be listed under Shell here: Start/Run/Regedit
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

/taskbarplus!.htm


Torgeir Bakken (MVP) said:
I have placed a shortcut to an executable into the Startup folder and I
have right clicked on to set it to run minimized.but it did not work.

Then I added it to the
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] key in
the registry and it still starts in "normal window" mode!

I think that there should me a switch in the command line that will force
it to start minimized.

Dose anybody know what it is and the syntax? I would imagine that a
minus sign or a forward slash is required with a switch.

The String Value that I have in the Run Key of the registry is "Adaptec
CIO"="C:\\Program Files\\Adaptec\\CIO Management Software\\ciocnsl.exe"
Hi

Put this in Run in registry (note that you need the quotes around the
program path if it has spaces):

cmd.exe /c start /min "path to some program here"


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
 
G

Guest

Nothing works!

I have finally got it launch from
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run key with
the "cmd" string with the switches suggested. It will only work without
quotation marks, so the string has to be modified to DOS style
C:\Progra~1\...

This program is very stubborn...it refuses to launch minimized! I even tried
it in the AutoRun string of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command
Processor key!

Thanks for the help guys...I guess I'm doomed to minimizing it at every
startup. ;-(


Torgeir Bakken (MVP) said:
I have placed a shortcut to an executable into the Startup folder and I
have right clicked on to set it to run minimized.but it did not work.

Then I added it to the
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] key in
the registry and it still starts in "normal window" mode!

I think that there should me a switch in the command line that will force
it to start minimized.

Dose anybody know what it is and the syntax? I would imagine that a
minus sign or a forward slash is required with a switch.

The String Value that I have in the Run Key of the registry is "Adaptec
CIO"="C:\\Program Files\\Adaptec\\CIO Management Software\\ciocnsl.exe"
Hi

Put this in Run in registry (note that you need the quotes around the
program path if it has spaces):

cmd.exe /c start /min "path to some program here"


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top