Page 1 of 1

Difference between Shell & RunApplication commands?

Posted: Fri Dec 07, 2018 4:27 pm
by JeffGrant
I am curious.

I wrote a script using the Shell command to run a windows batch file and the results were hit and miss as to whether the batch file would run or not.

I change the command to RunApplication and the batch file runs every time.

Why would that be because the commands look almost the same in terms of functionality or have I got that wrong?

Thanks

Re: Difference between Shell & RunApplication commands?

Posted: Wed Jan 23, 2019 9:16 am
by COBS Tech Support
I don't know why it would be "hit and miss" in your case. More information on the specific thing you were trying to do would be needed (although that would be more of a general Windows issue/question). The shell functionality is more generic so it lets you request things like opening a spreadsheet or emailing, without necessarily knowing which applications are assigned to such tasks. One possible limitation of Shell functionality is that security restrictions for a user or session may not let some or all shell requests execute. The RunApplication() function should work more predictably assuming a user has permission to launch new applications from existing applications. But you will likely need to know the exact application name and where it has been installed.