Difference between revisions of "ProcessShellRequest"
From RayHarwood
Rayharwood (Talk | contribs) |
Rayharwood (Talk | contribs) |
||
| Line 1: | Line 1: | ||
| − | When doing a | + | When doing a [[Batch Mode and Command-Line Arguments]] setup, here is code for processing the request. Each case selector calls the routine that actually does the work. I typically build the work-code from an interactive GUI form with buttons, then strip the work-code from the button handler, place into a sub, call the sub from the button handler '''and''' from the ProcessShellRequest below. That way, I can run the code in a batch file, but also still run it from the GUI if I need to do some "manual processing." |
Private Function ProcessShellRequest(ByVal TheArgs() As String, ByVal TheSource As String) As ShellResult | Private Function ProcessShellRequest(ByVal TheArgs() As String, ByVal TheSource As String) As ShellResult | ||