It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I developed on console application. I finished that successfully.My requirement is,that application automatically run in weekly once. I don't know how to set automatic debug.Can you please any one help me.
When you create a Console application, you will get an executable file *.exe.
You may schedule the exe using Operating system scheduling. That way you can specify the time and interval for the application to launch itself. You can't set it to debug through visual studio.
Another way could be to create Windows Service application, but probably you don't need it. Scheduling is a much better option.
You may see this article: How to schedule a program to run automatically.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Hi i am relatively new to windows service. I want to create a schedule task that will go through certain folder like c://dev/ and delete the files that are created between some date/time. How can i achieve this?Any help really appriciated...
Check this for 'forfiles' command: Batch file to delete files older than N days
Then you can store a command of your wish into a .bat file and set Windows Task Scheduler to run that file.
If you want to do it using Windows Services, check this: http://www.c-sharpcorner.com/blogs/7224/deleting-a-file-after-7-days-using-windows-services.aspx
If you want to run a custom scheduler from a windows service, you can try out the Quartz open source scheduling service library. You can then define CRON Triggers to fire as and when you need. I have used this in a windows service developed in C# and its excellent. The tutorials will quickly get you up and running.
For the windows service itself, you can have a look at the article by #mostruash above or even this. You can easily customize the base templates as per your wishes.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
what c# project must i choose in order to create an instant messaging application in visual studio.
pls help.
Thanks. :)
You have to plan a lot of different things during application design process. The main project anyway, of course, should be a windows form application or a WPF... then, eventually some libraries.
This question is far too common and will be closed soon.
But to give you some suggestions for directions you can go next:
Design you overall architecture first
Are there technical restrictions for the UI?
You have basically following options: Console App, WPF, WinForms, Silverlight, ASP
Since you said in a comment that the app should be a web app, maybe you want create an ASP.Net application.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I Have created a application, and i want to create a set up file, where the application should run automatically like when we move it to start up folder. but here i want to keep it when it will install the application.
and second thing, I want to implement also when my application will close, but that application should not quit, it will run like any anti virus software, skypee, etc. and we can maximize it from show hidden icons
You are looking for a Windows Service.
The service will run at all times even when no-one is logged in.
A WinForms application could be added to the system tray How to make a Windows Forms .NET application display as tray icon? and it could communicat with the service to find out its status or to configure it.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to add a function in my C# program that can synchronize the time between linux and windows, is there any way to do this?
One solution is to run an ntp server on the Linux server (many distributions either include one or make it easy to install), then use some sort of NTP client from within your program. One approach to the .NET side is here, but instead of using a public time server, you would want to use the address of the Linux server.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
hello i have created one windows application in c# .net and its working fine in windows xp, but when i try to install the setup in windows 7 or vista,the setup never runs.. should i have to write some code for it...?
please help
Assuming your installer is an MSI, turn logging on to find out why.
msiexec NameOfYour.msi /l*v log.txt
Make sure you installed the correct version of .net Framework on your box.