Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No Console window

Status
Not open for further replies.

mikej336

MIS
Feb 10, 2005
164
US
Is there a way to run a console program without opening a console window.

The program is being call by anouther system and will ftp a file to the pc then open up the file in Adobe Arcobat.

I would like to just call the program and then Acrobat just popup without letting the user know a program has been launched.

My program works fine now but I get a console window for a few seconds then it closes.

Thanks

Uncle Mike

 
How is the other application calling the console app?


I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day! Ye has a choice: talk like a pira
 
It is calling it via command line like a shell program

c:\return.exe 123.pdf

Thanks

Uncle Mike
 
Is it a VB .NET app, or something else?

I ask because there are ways to suppress the window showing, but I don't want to list all of them. A little more specificity (i.e., code) would help.



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day! Ye has a choice: talk like a pira
 
The program calling it is an AS400 Client Access session.


The program itself is a VB.Net 2003 console application.

Thanks Uncle Mike
 
After 2 days of searching I finally found the answer for anyone following this thread.

Project - Properties - Common Properties - Output Type. Change Console Application to Windows Application. Now console application runs without opening a console window. If you have Console output in this program, it goes to Debug output (like ystem.Diagnostics.Debug.Write...)

Thanks

Uncle Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top