Apr 28, 2005 #1 bnath IS-IT--Management Apr 7, 2003 16 US I am launching a VB6.0 application from MS Access 2003 application using Call Shell("K:\newapp.exe") If I want to pass command-line parameter along with the application name. How can I do that? thanks nath
I am launching a VB6.0 application from MS Access 2003 application using Call Shell("K:\newapp.exe") If I want to pass command-line parameter along with the application name. How can I do that? thanks nath
Apr 28, 2005 #2 TomCologne Technical User Apr 18, 2002 628 You should be able to place the parameters within the string. I tried: Shell ("Outlook.exe /select outlook:calendar") and it works just fine. TomCologne Upvote 0 Downvote
You should be able to place the parameters within the string. I tried: Shell ("Outlook.exe /select outlook:calendar") and it works just fine. TomCologne
Apr 28, 2005 Thread starter #3 bnath IS-IT--Management Apr 7, 2003 16 US so If I want to pass a string called "authorized" to my vb application, then I would say Shell("c:\newapp.exe /authorized") is that correct? and if I read in newapp.exe then I should be able see the string "authorized". am I correct . thansk nath Upvote 0 Downvote
so If I want to pass a string called "authorized" to my vb application, then I would say Shell("c:\newapp.exe /authorized") is that correct? and if I read in newapp.exe then I should be able see the string "authorized". am I correct . thansk nath
Apr 28, 2005 #4 TomCologne Technical User Apr 18, 2002 628 The parameter argument depends of course on the application. If "authorized" is a valid parameter, to eg open "newapp" in a special mode and nothing else is required, than your string should work. I'm not sure what "and if I read in newapp.exe then I should be able see the string "authorized". " means. Why don't you simply try it out. If you do not want to do this from your database use cmd.exe and enter c:\newapp.exe /authorized at the prompt. TomCologne Upvote 0 Downvote
The parameter argument depends of course on the application. If "authorized" is a valid parameter, to eg open "newapp" in a special mode and nothing else is required, than your string should work. I'm not sure what "and if I read in newapp.exe then I should be able see the string "authorized". " means. Why don't you simply try it out. If you do not want to do this from your database use cmd.exe and enter c:\newapp.exe /authorized at the prompt. TomCologne
Apr 28, 2005 Thread starter #5 bnath IS-IT--Management Apr 7, 2003 16 US thanks . It works Upvote 0 Downvote