473,394 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Running Invisible console Application

Hi,
I have created a console application in c#.net. I also scheduled it
in the windows scheduler. In the scheduled task i will specify the command
line arguments. When I say "Run", I am getting the command window, which I
dont want. I need to run my application in silent mode. My system is windows
2003 server.

Please help me in this.

Thanks
Aug 2 '06 #1
3 9794
* Nicol wrote, On 2-8-2006 13:47:
Hi,
I have created a console application in c#.net. I also scheduled it
in the windows scheduler. In the scheduled task i will specify the command
line arguments. When I say "Run", I am getting the command window, which I
dont want. I need to run my application in silent mode. My system is windows
2003 server.

Please help me in this.

Thanks
Instead create it as a windows forms application, but remove the
Application.Run call. If you just paste the contents of your console app
into the windows forms app you'll have your invisible app.

Jesse
Aug 2 '06 #2
Thanks for your reply. I will set my command line parameters in the
program(Scheduler). Then how come I access these parameters in my windows
application. Plz help

"Jesse Houwing" wrote:
* Nicol wrote, On 2-8-2006 13:47:
Hi,
I have created a console application in c#.net. I also scheduled it
in the windows scheduler. In the scheduled task i will specify the command
line arguments. When I say "Run", I am getting the command window, which I
dont want. I need to run my application in silent mode. My system is windows
2003 server.

Please help me in this.

Thanks

Instead create it as a windows forms application, but remove the
Application.Run call. If you just paste the contents of your console app
into the windows forms app you'll have your invisible app.

Jesse
Aug 3 '06 #3
* Nicol wrote, On 3-8-2006 12:05:
Thanks for your reply. I will set my command line parameters in the
program(Scheduler). Then how come I access these parameters in my windows
application. Plz help
The windows program has a public static void main that has the exact
same signature as a console application. Apart from removing the
Application.Run call from it, there's no difference.

Jesse
"Jesse Houwing" wrote:
>* Nicol wrote, On 2-8-2006 13:47:
>> Hi,
I have created a console application in c#.net. I also scheduled it
in the windows scheduler. In the scheduled task i will specify the command
line arguments. When I say "Run", I am getting the command window, which I
dont want. I need to run my application in silent mode. My system is windows
2003 server.

Please help me in this.

Thanks
Instead create it as a windows forms application, but remove the
Application.Run call. If you just paste the contents of your console app
into the windows forms app you'll have your invisible app.

Jesse
Aug 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Paul C | last post by:
Hello, everybody. I am having trouble running some of the VS.NET samples, specifically the CarSelector web app, which is very simple. The symptom is that the web controls (drop down listboxes and...
2
by: David Olive | last post by:
Hi guys, I'm having a bit of a problem getting a VB .NET console app to run happily as a scheduled task. The app itself generates a bunch of word documents on a file share on another server by...
2
by: MattMenard | last post by:
I've written a C program that I want to run inside an Gui wrapper that I started to write in MFC. I have to select some files then kick off a process running the C program. I have the initial...
4
by: sneffe | last post by:
Hi, im writing a program to keep track of which programs is currently running. I would like to have the caption of running programs displayed in a textbox on my form. I cant seem to find an easy way...
8
by: nadeem_far | last post by:
Hello All, These days I am working on a console application that will register for certain events and do some processing based on the event notification. Now, all the objects are being created...
5
by: plmanikandan | last post by:
Hi, I have written a win32 console application(exname1.exe) which runs for ten minutes.I am calling this exname1.exe from another exe named exname.exe using shellexecuteex.Now from exname.exe...
4
by: jimmy | last post by:
Hi, I am running a query in a .NET windows service which takes a long time to execute. The query times out. The same query doesn't time out from a console application. I have put the...
0
by: =?Utf-8?B?U3RldmUgTWFydGlu?= | last post by:
I am attempting to launch a console application from a service under a different set of credentials running on Windows Server 2003. I am getting an error "0xC06D007E: Module not found." from the...
2
by: tom.sikes | last post by:
We wrote some code (utility stuff) that is intended to run as part of either a windows service, a console app or a windows app. What I'd like to do is when it is running as a service have it log...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.