Link to home
Start Free TrialLog in
Avatar of dba123
dba123

asked on

How to schedule VB.NET console (.vb) to run via Scheduler

1) Does anyone have a good article or tell me quickly how to run my VB.NET console .vb code using Windows Scheduler?

I tried to create a sheduled task on the server, browse to the .vb file and run...it failed to run.  Not sure if it's my code or how I'm setting up the scheduled task.  The username and password to run is fine that I setup in the task properties.

2) Also, being that this is not an aspx app, can I still create an aspx page with a button to hook up to my console app to run manually if required?

ASKER CERTIFIED SOLUTION
Avatar of graye
graye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dba123
dba123

ASKER

yea, I see.  I know in the past at least with asp I was able to run it with an exe.  Can you step me through compling this into an exe since I've never done it before...
Let's start with a simple walkthru for creating a VB.Net-based Console application

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tsptBuildCommLineApp_SV01074501.asp

This link is kinda specific to Sharepoint, but the concepts are the same...

To compile the program, you just click on the "Build/Build Solution" menu
Avatar of dba123

ASKER

I have my console app working...just don't know how to compile into an exe
Avatar of dba123

ASKER

it is working when I run my .vb code in debug.  Here's the code:

http://www.webfound.net/wholecode.txt
So, dig the *.exe file out of the Debug directory, install that on the server
Avatar of dba123

ASKER

how do I install it on the server...?
Most .Net application don't require any installation... so just copy the file to the server