Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi


I am currently trying to create a process that needs to run at a certain time(18:00).

What would be the best way for me to do this?

My aplication is a web based app.
Posted
Comments
_Asif_ 24-Apr-14 7:19am    
Can you elaborate a bit regarding your process? Is this an independent/isolated process? Can we move it out from the web app?
isi19 24-Apr-14 7:31am    
The process needs to export transaction details from the database to an FTP server.
I dont have access to the server to install a windows service

Well in that case the process will be very simple. Try like this

1. Create a Console Application which will do following
1.1 Get connectivity to the database
1.2 Develop export mechanism to file
1.3 Develop FTP mechanism to FTP file to the servers
2. Create a windows scheduler task
3. Configure task to run on 18:00

Thats all you have to do. Please follow below url in case you dont know how to schedule the task.

Configure a Scheduled Task Item[^]
 
Share this answer
 
Best way is to create a Windows Service with a configuration file and Log File than going for a complex implementation

1.Visual Basic Projects->Windows Service
2.Create the Worker threads and Implement your functionality
3.Read Configuration from Settings.ini file
4.Write data to a data file
5.Register the service in Window using -service command from command prompt

Eg:- C:\Myservicefolder\myservice.exe -service

6. Run-> services.msc find your service then start it

The service will be ruing until you stop it (If possible make service as Automatic)

7. Unregistering service (If no longer needed)

C:\Myservicefolder\myservice.exe unregserver


This service can be acessed using a Client server Application from server to client for exchange of data Host service in Server
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900