Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Running an automatic process

Posted on 2006-07-03
1
Medium Priority
?
208 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 1000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

722 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