tag:blogger.com,1999:blog-28492262.post7976162913965850234..comments2023-12-27T22:22:25.151-08:00Comments on VBA Tips & Tricks: Visual Basic Command Line ArgumentsUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-28492262.post-10753987416721270732011-08-06T01:28:22.855-07:002011-08-06T01:28:22.855-07:00i have a application in which the operator runs th...i have a application in which the operator runs the end of day manually everyday. He clicks on the application and the EOD form is launched where he clicks some options (like backup preferences , Start of day block etc). Now i want to automate this process. Can anyone please let me know what how we can execute this exe through a command line.Dua Rachithttps://www.blogger.com/profile/05965078402055653632noreply@blogger.comtag:blogger.com,1999:blog-28492262.post-15760049423355554132010-12-05T08:55:58.767-08:002010-12-05T08:55:58.767-08:00You may wish to try this instead:
arCmdData = Spli...You may wish to try this instead:<br />arCmdData = Split(sCmdText, ",")<br />If arCmdData(0) = "PRG1" Then<br /> Exec_PRG1 (arCmdData(1))<br />ElseIf arCmdData(0) = "PRG2" Then<br /> Exec_PRG2 (arCmdData(1))<br />ElseIf arCmdData(0) = "PRG3" Then<br /> Exec_PRG3 (arCmdData(1))<br />End IfAnonymousnoreply@blogger.com