PC Review


Reply
Thread Tools Rate Thread

Command for running application minimized

 
 
nkjg
Guest
Posts: n/a
 
      22nd Mar 2004
Hey everyone,

This is probably a really easy question (I'm dumb =P).

I'm wondering what the add on to a shortcut command is to
run a program minimized. I've got a program that I wrote
in C++ and I want to run at start up, but I'd like it to
run in the background (i.e. no window pops up).

The program runs and then closes itself (by means of
system("exit") ), so it's only running for about 0.02
seconds, but I'd rather not see this big, ugly command
prompt screen flash at me everytime that I start up my
computer...

Thanks for the help!

Nick
(E-Mail Removed)
 
Reply With Quote
 
 
 
 
David Candy
Guest
Posts: n/a
 
      22nd Mar 2004
Create a hidden window instead opf a visable one. Don't use a window at all.

Look at Start /min command. Start is an internal command so to use
cmd /cstart /min notepad.exe

But you'll get a big black window. All shortcuts have provision for starting minimised in the properties.
--
----------------------------------------------------------
http://www.g2mil.com/Dec2003.htm
"nkjg" <(E-Mail Removed)> wrote in message news:117dc01c41051$028543e0$(E-Mail Removed)...
> Hey everyone,
>
> This is probably a really easy question (I'm dumb =P).
>
> I'm wondering what the add on to a shortcut command is to
> run a program minimized. I've got a program that I wrote
> in C++ and I want to run at start up, but I'd like it to
> run in the background (i.e. no window pops up).
>
> The program runs and then closes itself (by means of
> system("exit") ), so it's only running for about 0.02
> seconds, but I'd rather not see this big, ugly command
> prompt screen flash at me everytime that I start up my
> computer...
>
> Thanks for the help!
>
> Nick
> (E-Mail Removed)

 
Reply With Quote
 
nkjg
Guest
Posts: n/a
 
      23rd Mar 2004
Thanks a million! Worked like a charm!

Just out of curiosity, is there a command like that to
run a program in the background? or does that have to be
done in the program itself?

Thanks again,

Nick
(E-Mail Removed)


>-----Original Message-----
>Create a hidden window instead opf a visable one. Don't

use a window at all.
>
>Look at Start /min command. Start is an internal command

so to use
>cmd /cstart /min notepad.exe
>
>But you'll get a big black window. All shortcuts have

provision for starting minimised in the properties.
>--
>---------------------------------------------------------

-
>http://www.g2mil.com/Dec2003.htm
>"nkjg" <(E-Mail Removed)> wrote in

message news:117dc01c41051$028543e0$(E-Mail Removed)...
>> Hey everyone,
>>
>> This is probably a really easy question (I'm dumb =P).
>>
>> I'm wondering what the add on to a shortcut command is

to
>> run a program minimized. I've got a program that I

wrote
>> in C++ and I want to run at start up, but I'd like it

to
>> run in the background (i.e. no window pops up).
>>
>> The program runs and then closes itself (by means of
>> system("exit") ), so it's only running for about 0.02
>> seconds, but I'd rather not see this big, ugly command
>> prompt screen flash at me everytime that I start up my
>> computer...
>>
>> Thanks for the help!
>>
>> Nick
>> (E-Mail Removed)

>.
>

 
Reply With Quote
 
David Candy
Guest
Posts: n/a
 
      23rd Mar 2004
In Background is a application defined state. To windows there is no such thing. There is merely windows, active, hidden, on the taskbar, the underlying program code doesn't see any difference.

--
----------------------------------------------------------
http://www.g2mil.com/Dec2003.htm
"nkjg" <(E-Mail Removed)> wrote in message news:11b3a01c4109b$8017df80$(E-Mail Removed)...
> Thanks a million! Worked like a charm!
>
> Just out of curiosity, is there a command like that to
> run a program in the background? or does that have to be
> done in the program itself?
>
> Thanks again,
>
> Nick
> (E-Mail Removed)
>
>
> >-----Original Message-----
> >Create a hidden window instead opf a visable one. Don't

> use a window at all.
> >
> >Look at Start /min command. Start is an internal command

> so to use
> >cmd /cstart /min notepad.exe
> >
> >But you'll get a big black window. All shortcuts have

> provision for starting minimised in the properties.
> >--
> >---------------------------------------------------------

> -
> >http://www.g2mil.com/Dec2003.htm
> >"nkjg" <(E-Mail Removed)> wrote in

> message news:117dc01c41051$028543e0$(E-Mail Removed)...
> >> Hey everyone,
> >>
> >> This is probably a really easy question (I'm dumb =P).
> >>
> >> I'm wondering what the add on to a shortcut command is

> to
> >> run a program minimized. I've got a program that I

> wrote
> >> in C++ and I want to run at start up, but I'd like it

> to
> >> run in the background (i.e. no window pops up).
> >>
> >> The program runs and then closes itself (by means of
> >> system("exit") ), so it's only running for about 0.02
> >> seconds, but I'd rather not see this big, ugly command
> >> prompt screen flash at me everytime that I start up my
> >> computer...
> >>
> >> Thanks for the help!
> >>
> >> Nick
> >> (E-Mail Removed)

> >.
> >

 
Reply With Quote
 
nkjg
Guest
Posts: n/a
 
      23rd Mar 2004
Nuts.... that means that I've got to learn more stuff
before I can do that... phooey...

Thanks for the help!

Nick
(E-Mail Removed)


>-----Original Message-----
>In Background is a application defined state. To windows

there is no such thing. There is merely windows, active,
hidden, on the taskbar, the underlying program code
doesn't see any difference.
>
>--
>---------------------------------------------------------

-
>http://www.g2mil.com/Dec2003.htm
>"nkjg" <(E-Mail Removed)> wrote in

message news:11b3a01c4109b$8017df80$(E-Mail Removed)...
>> Thanks a million! Worked like a charm!
>>
>> Just out of curiosity, is there a command like that to
>> run a program in the background? or does that have to

be
>> done in the program itself?
>>
>> Thanks again,
>>
>> Nick
>> (E-Mail Removed)
>>
>>
>> >-----Original Message-----
>> >Create a hidden window instead opf a visable one.

Don't
>> use a window at all.
>> >
>> >Look at Start /min command. Start is an internal

command
>> so to use
>> >cmd /cstart /min notepad.exe
>> >
>> >But you'll get a big black window. All shortcuts have

>> provision for starting minimised in the properties.
>> >--
>> >------------------------------------------------------

---
>> -
>> >http://www.g2mil.com/Dec2003.htm
>> >"nkjg" <(E-Mail Removed)> wrote in

>> message news:117dc01c41051$028543e0$(E-Mail Removed)...
>> >> Hey everyone,
>> >>
>> >> This is probably a really easy question (I'm dumb

=P).
>> >>
>> >> I'm wondering what the add on to a shortcut command

is
>> to
>> >> run a program minimized. I've got a program that I

>> wrote
>> >> in C++ and I want to run at start up, but I'd like

it
>> to
>> >> run in the background (i.e. no window pops up).
>> >>
>> >> The program runs and then closes itself (by means

of
>> >> system("exit") ), so it's only running for about

0.02
>> >> seconds, but I'd rather not see this big, ugly

command
>> >> prompt screen flash at me everytime that I start up

my
>> >> computer...
>> >>
>> >> Thanks for the help!
>> >>
>> >> Nick
>> >> (E-Mail Removed)
>> >.
>> >

>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I pass a command line to another instance of my application which is already running pamela fluente Microsoft VB .NET 2 11th Apr 2007 02:12 PM
Minimized application disappeared if explorer is not running =?Utf-8?B?S2Fu?= Windows XP General 11 10th Feb 2006 12:03 AM
Auto- running a minimized application at startup Gereon Windows XP Embedded 1 27th Apr 2005 12:03 AM
how to kill running .exe application by command line =?Utf-8?B?cm9oaXRrMTg=?= Microsoft Access 1 21st Feb 2005 11:06 PM
Running command line tool from web application =?Utf-8?B?TWFuZHk=?= Microsoft ASP .NET 9 15th Jan 2005 02:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:00 PM.