Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

Running an automatic process

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
Sirdots
Asked:
Sirdots
1 Solution
 
bruintjeCommented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now