473,405 Members | 2,404 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,405 software developers and data experts.

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 3219
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**************@TK2MSFTNGP09.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**************@tk2msftngp13.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
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
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...
6
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....
1
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...
0
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
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...
1
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...
3
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...
2
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...

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.