473,691 Members | 2,986 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scheduled running of a C# application

RSH

I have an application that creates an Access version of a SQL Server
database and then it moves the resulting database to an ftp server for the
client to download and run reports against etc. The application is dynamic
in nature and requires user input, but the point is that it isn't a one off
application. I would like to be able to modify the application to receive
the params via the commandline and somehow run automatically off of a set
schedule. Basically I would like it to run unattended twice a day at say
10am and 10pm.

I am familiar with SQL Jobs and schedules but unfortunately I am having to
use .Net for many other reasons so I can't reproduce the application in SQL
so I need some other way of running off a schedule. What are my options?
Where can I find any simple tutorials?

Thank you for your time,
Ron
Feb 1 '06 #1
4 3237
RSH wrote:
I have an application that creates an Access version of a SQL Server
database and then it moves the resulting database to an ftp server for the
client to download and run reports against etc. The application is dynamic
in nature and requires user input, but the point is that it isn't a one off
application. I would like to be able to modify the application to receive
the params via the commandline and somehow run automatically off of a set
schedule. Basically I would like it to run unattended twice a day at say
10am and 10pm.

I am familiar with SQL Jobs and schedules but unfortunately I am having to
use .Net for many other reasons so I can't reproduce the application in SQL
so I need some other way of running off a schedule. What are my options?
Where can I find any simple tutorials?


The easiest thing to do is make it a Scheduled Task in Windows. Go to
Control Panel, Scheduled Tasks, and add a new Scheduled Task.

Jon

Feb 1 '06 #2
"RSH" <wa************ *@yahoo.com> wrote in message
news:OK******** ******@TK2MSFTN GP09.phx.gbl...

I have an application that creates an Access version of a SQL Server
database and then it moves the resulting database to an ftp server for the
client to download and run reports against etc. The application is
dynamic in nature and requires user input, but the point is that it isn't
a one off application. I would like to be able to modify the application
to receive the params via the commandline and somehow run automatically
off of a set schedule. Basically I would like it to run unattended twice
a day at say 10am and 10pm.

I am familiar with SQL Jobs and schedules but unfortunately I am having to
use .Net for many other reasons so I can't reproduce the application in
SQL so I need some other way of running off a schedule. What are my
options? Where can I find any simple tutorials?


It sounds like the free developers edition of JAMS will satisfy your needs.

JAMS is an enterprise grade task scheduler based on the .NET Framework. You
can get more information and/or download the developers edition from:

http://www.mvpsi.com

John Vottero
JAMS Technical Support
Feb 1 '06 #3
Jon Skeet [C# MVP] wrote:
RSH wrote:
I have an application that creates an Access version of a SQL Server
database and then it moves the resulting database to an ftp server for the
client to download and run reports against etc. The application is dynamic
in nature and requires user input, but the point is that it isn't a one off
application . I would like to be able to modify the application to receive
the params via the commandline and somehow run automatically off of a set
schedule. Basically I would like it to run unattended twice a day at say
10am and 10pm.

I am familiar with SQL Jobs and schedules but unfortunately I am having to
use .Net for many other reasons so I can't reproduce the application in SQL
so I need some other way of running off a schedule. What are my options?
Where can I find any simple tutorials?

The easiest thing to do is make it a Scheduled Task in Windows. Go to
Control Panel, Scheduled Tasks, and add a new Scheduled Task.

Jon


I second Jon's idea. I did this for *exactly* the same purpose. Just
to give you an idea of what I did.

I created two applications, a console app and a winapp. the winapp was
used by the user and created as "output" a configuration file (I had a
serializable config object). The console app ran using Scheduled Tasks
in windows and took 1 parameter-- the path to the config file. I think
(I no longer have the source) I used a .bat file to "attach" the config
file path, but I don't remember.

As far as I know, this worked great for me, since the customer never
complained.

Scott
Feb 2 '06 #4

"Scott C" <sdcoonce@g_m_a _i_l.com> wrote in message
news:eh******** ******@tk2msftn gp13.phx.gbl...
| Jon Skeet [C# MVP] wrote:
| > RSH wrote:
| >
| >>I have an application that creates an Access version of a SQL Server
| >>database and then it moves the resulting database to an ftp server for
the
| >>client to download and run reports against etc. The application is
dynamic
| >>in nature and requires user input, but the point is that it isn't a one
off
| >>application . I would like to be able to modify the application to
receive
| >>the params via the commandline and somehow run automatically off of a
set
| >>schedule. Basically I would like it to run unattended twice a day at
say
| >>10am and 10pm.
| >>
| >>I am familiar with SQL Jobs and schedules but unfortunately I am having
to
| >>use .Net for many other reasons so I can't reproduce the application in
SQL
| >>so I need some other way of running off a schedule. What are my
options?
| >>Where can I find any simple tutorials?
| >
| >
| > The easiest thing to do is make it a Scheduled Task in Windows. Go to
| > Control Panel, Scheduled Tasks, and add a new Scheduled Task.
| >
| > Jon
| >
|
| I second Jon's idea. I did this for *exactly* the same purpose. Just
| to give you an idea of what I did.
|
| I created two applications, a console app and a winapp. the winapp was
| used by the user and created as "output" a configuration file (I had a
| serializable config object). The console app ran using Scheduled Tasks
| in windows and took 1 parameter-- the path to the config file. I think
| (I no longer have the source) I used a .bat file to "attach" the config
| file path, but I don't remember.
|
| As far as I know, this worked great for me, since the customer never
| complained.
|
| Scott

Running a task twice a day can be problematic if not every 12 hour.
This isn't a problem here as the OP want's the task to run at 10am and 10pm,
so he can schedule the task to run evry 12 hours.

Willy.
Feb 2 '06 #5

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

Similar topics

1
1686
by: carmen | last post by:
How could I close a running application? All that I find is the Process object but not for the CompactFramework. Thank you for your help!
4
13040
by: bat sar | last post by:
Hi all I'm working on Visual C# .NET, I'm new and I want to build on-screen keyboard, I want to know what should happen when you click a button, lets say its "A" how should I send the value of it to another running application, let it be Word or any other programm... I found somthing about SendKey.Send ... but I donno how to use it, I tried to read some about it, but they said that I have to use the FindWindow, to find the active...
6
1259
by: Anders Both | last post by:
I want to run a application (console or window) in the asp.net process, because i need an running application on the server that can acces the same data/singleton object as my asp.net application. Does someone know how i can achive this thing, if it is not posible in any way to open a window form in the asp.net process. How can I then solve this problem. Best Regards
1
1396
by: bobcat | last post by:
I'm new to side-by-side assemblies, and was unable to find any reference as to whether a single running application can access multiple versions of a class. For example, can I read a serialized object into an old version, and use it to instantiate a new version of the object? (If this works, I assume supporting many versions will work too.) I'll be happy just to have the answer that it works.
0
1119
by: Steven | last post by:
Hello, I want to get all the running application names, like "Task Manager/Application", but no all processes. Thank you
3
1785
by: xoinki | last post by:
hi all, I am trying to fetch the name of the binary.. i.e, for eg, I am running sql.exe doin some operation.. in that I want to fetch the name 'sql.exe' i.e name of the running application.. how do i do this in C++ using win32 library? Thanks for any help xoinki
1
3327
by: Surinder Singh | last post by:
Hi, what would be max stack frame size (of single frame) on Linux and Solaris/x86 of a running application stack? I am compiling c program with gcc on Suse 10 Linux kernel 2.6.13-15.13-default i386 centrino processor. gcc version -- 4.0.2 I have some 8KB structure (+ more data ) in a function and gcc with
3
1258
by: bangeye | last post by:
Tribe, I have need to use ASP.NET to connect to an already running application (non web) that will be running on the same server as IIS. Start MyServerApp, MyServerApp is now running - doing work for me. ASP.NET page request comes in, Create on the fly object of some sort that can talk to MyServerApp,
2
2012
by: babp | last post by:
Hi Iam new to perl and need a help to send inputs to an running application : I am running an application XXXX , and when it starts i am passing a file name called "connect.spb" and after the application connects to the server i am sending filename "accept.spb" as a parameter. BL31DL385:$ ./XXXX This is XXXX (Reproducer by Order or RelaY)
0
1096
by: sumimol | last post by:
Hi We have an application in c# and it uses COM interface for communicating to unmanaged code.Its a multi threaded application.After running application for long time, it shows windows dont send pop up message.We tried to put try, catch in both c# and unmanaged code but its not caught in catch block and we also tried to put unhandled thread handlers and all, but no use.Can any one tell the reason?
0
8599
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
8531
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
9079
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8951
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...
1
8791
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5813
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
4322
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
2965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1952
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.