Discussion:
Can I Open CMD.EXE Minimized ?
(too old to reply)
nmventure
2005-11-28 02:01:35 UTC
Permalink
I have a command-line command in the Run key of the registry that runs each
time a user logs on to the computer:

cmd /c my-command-string

My command works fine, but what I would like to do is get rid of the DOS
windows that appears momenterily while the command is running. Is there any
way to make it not visible or atleast make it run minimized or in the task
bar ?
It's just a little unattractive.

I really don't want to use a batch file unless there is no other way. What
I'm looking for is something like an equivelent to:

start /min myprogram.exe

for cmd.exe

Thanks in advance, all suggestions appreciated.
Harlan Grove
2005-11-28 05:08:47 UTC
Permalink
Post by nmventure
I have a command-line command in the Run key of the registry that runs each
cmd /c my-command-string
My command works fine, but what I would like to do is get rid of the DOS
windows that appears momenterily while the command is running. Is there any
way to make it not visible or atleast make it run minimized or in the task
bar ?
It's just a little unattractive.
I really don't want to use a batch file unless there is no other way. What
start /min myprogram.exe
for cmd.exe
Create a shortcut for CMD.EXE. You could use %COMSPEC% as the location and
something like minstart for the name. Once it's created, right click on it
in Explorer and choose Properties from the popup menu. Select the Shortcut
tab in the Properties dialog, and change the Run field to Minimized. Click
OK. Then call this shortcut rather than cmd from the Registry Run entry,
e.g.,

C:\foo\bar\minstart.lnk /c <rest of command line here>
nmventure
2005-11-28 05:35:27 UTC
Permalink
Excellent ! That certainly does the trick, Thanks Harlan.
Post by Harlan Grove
Post by nmventure
I have a command-line command in the Run key of the registry that runs each
cmd /c my-command-string
My command works fine, but what I would like to do is get rid of the DOS
windows that appears momenterily while the command is running. Is there any
way to make it not visible or atleast make it run minimized or in the task
bar ?
It's just a little unattractive.
I really don't want to use a batch file unless there is no other way.
What
Post by Harlan Grove
Post by nmventure
start /min myprogram.exe
for cmd.exe
Create a shortcut for CMD.EXE. You could use %COMSPEC% as the location and
something like minstart for the name. Once it's created, right click on it
in Explorer and choose Properties from the popup menu. Select the Shortcut
tab in the Properties dialog, and change the Run field to Minimized. Click
OK. Then call this shortcut rather than cmd from the Registry Run entry,
e.g.,
C:\foo\bar\minstart.lnk /c <rest of command line here>
Continue reading on narkive:
Loading...