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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
ASKER
I have my console app working...just don't know how to compile into an exe
ASKER
it is working when I run my .vb code in debug. Here's the code:
http://www.webfound.net/wholecode.txt
http://www.webfound.net/wholecode.txt
So, dig the *.exe file out of the Debug directory, install that on the server
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
ASKER