Solved

Running an automatic process

Posted on 2006-07-03
1
201 Views
Last Modified: 2010-04-23
I have a process I will like to run and I want to use vb.net windows application and use the windows scheduler to run the process once a day. How can I do this? which event do i place my code since I dont have command buttons on my windows form.
0
Comment
Question by:Sirdots
1 Comment
 
LVL 44

Accepted Solution

by:
bruintje earned 250 total points
ID: 17034688
Hi Sirdots,
----------

you need to pass in commandline parameters to startup the process you want to run in your application

you can find some sample code doing this here
http://groups.google.com/group/microsoft.public.dotnet.languages.vb/browse_frm/thread/852de15947b340d4/d6280a830ce4cbb0

you need to have a function that is called on startup then read the args passed on that will be instructions to your program what to do next

when this works you can add the program to the windows scheduler and add the appropriate commandline arguments which is what i use a lot

"G:\Myfolder path here\MyProgram.exe" 1,1,0

----------
bruintje
share what you know, learn what you don't
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now