www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - running a script without the dos console showing

↑ ↓ ← david <david_member pathlink.com> writes:
I have a script "helper.exe" that I would like to put in the startup folder of
my windows xp operating sys so that it runs indefinitely whenever my computer
starts up.  However, a console pops up and is there as along as the program is
running.  Is there a way for the program to run the way that I have described
without the console showing?

Thank you,
david

btw -- Thank you Jack, for the icmp.lib.
Feb 21 2005
↑ ↓ → Jack <Jack_member pathlink.com> writes:
You need to set the SUBSYSTEM to WINDOWS (it's CONSOLE by default).
If you have only one source file, you can compile it by passing the /SU:WINDOWS
switch to linker like this:
dmc -L/SU:WINDOWS helper.c

If you have more than 1 source file, you need to compile your sources without
auto linking by adding the -c switch and link them manually:
dmc -c helper.c
dmc -c anothersource.c
link /SU:WINDOWS helper.obj anothersource.obj

In article <cveeic$1p25$1 digitaldaemon.com>, david says...
I have a script "helper.exe" that I would like to put in the startup folder of
my windows xp operating sys so that it runs indefinitely whenever my computer
starts up.  However, a console pops up and is there as along as the program is
running.  Is there a way for the program to run the way that I have described
without the console showing?

Thank you,
david

btw -- Thank you Jack, for the icmp.lib.

Feb 21 2005