Difference between Shell & RunApplication commands?
  • JeffGrant
    Posts:32
    Joined:Thu Sep 20, 2018 3:38 pm
    Location:Sydney Australia
    Difference between Shell & RunApplication commands?

    by JeffGrant » Fri Dec 07, 2018 4:27 pm

    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
  • COBS Tech Support
    Posts:683
    Joined:Fri Sep 09, 2005 8:23 am

    Re: Difference between Shell & RunApplication commands?

    by COBS Tech Support » Wed Jan 23, 2019 9:16 am

    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.

Who is online

Users browsing this forum: No registered users and 4 guests