473,614 Members | 2,351 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9826
* 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(Schedul er). 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(Schedul er). 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.Ru n 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
1544
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 such) do not render correctly. They're almost invisible, and the others don't work at all, but just show their caption text. Not what should happen This strange behavior is happening on my new laptop, which came with XP Home, but I immediately...
2
5844
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 reading from a template file and inserting text at bookmark locations (with details pulled from a table in the database). I'm running the app under a regular domain account that isn't an administrator on the server. The read/execute permissions are...
2
1698
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 dialog file selection stuff written, but am not sure how to run the C program inside a seperate thread. I'm using VS.NET 2003 and am trying to use the Thread and Process objects, but am not sure if I can use that with MFC. I can't compile the code...
4
821
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 to do this in vb.net. Does anybody have a piece of code that can help me? Thanks
8
4560
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 in main(). Once the main exists the program ends. Here is what I want to do.
5
1661
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 coding i have to check whether exname1.exe is already running or not.How to find whether a win32 console application is already runing or not from another win32 console application.I need only one copy of exe has to run(for that i have already used...
4
2667
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 CommandTimeout of ODBCCommand to 0 (indefinite wait- time). Any idea why it might not work from Windows services ?
0
1611
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 called executable. In event viewer I am seeing a two entries of below separated by 2 seconds: Event Type: Failure Audit Event Source: Security Event Category: Privilege Use
2
1772
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 exceptions to the event log, when as a console app, write them to the Console, and when running as a windows app. raise an event. Anybody have any ideas other than setting some flag values in the launching application. We can't do that because...
0
8197
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8142
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8589
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8443
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7114
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5548
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4058
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1438
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.