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
Solved

Running an automatic process

Posted on 2006-07-03
1
205 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
start a process from a service 3 30
.NET 2008 VB and C# 6 39
Checking a checkbox based on SQL DataReader boolean value in ASP.NET(VB) 2 32
get combo value in class 5 14
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

791 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