Solved

Running an automatic process

Posted on 2006-07-03
1
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

615 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