Nemesis09
Active member
Hi,
I've got a pogram that I wrote in vb.net which amongst other things is used to print out a form every friday. This is a standard vb.net winforms exe. This is all working fine although it would be good to automate this hopefully through "scheduled tasks".
Consequently, I'm now trying to add the ability to launch the exe with a switch and have it start up, load the data, print the form and close, all without the user seeing anything.
Something like "form1.visible = false" will be more that sufficient for hiding the form, and I can figure the rest out my self (I hope).
What I'm asking is how do I get the exe to read/accept the switches/arguments passed to it on startup?
Something like C:\Program Files\TimeWatcher\TimeWatcher.exe /autoprint"
Thanks in advance for any sugestions.
I've got a pogram that I wrote in vb.net which amongst other things is used to print out a form every friday. This is a standard vb.net winforms exe. This is all working fine although it would be good to automate this hopefully through "scheduled tasks".
Consequently, I'm now trying to add the ability to launch the exe with a switch and have it start up, load the data, print the form and close, all without the user seeing anything.
Something like "form1.visible = false" will be more that sufficient for hiding the form, and I can figure the rest out my self (I hope).
What I'm asking is how do I get the exe to read/accept the switches/arguments passed to it on startup?
Something like C:\Program Files\TimeWatcher\TimeWatcher.exe /autoprint"
Thanks in advance for any sugestions.