web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Passing parameters to a .bat file using Run Application

(0) ShareShare
ReportReport
Posted on by 1,575

Alright, all you dex-heads out there.  Here's a tough one.

It's easy to use "run application" to execute a batch file.  Like this:

run application "", "C:\test.bat";

But what if you want to pass a parameter to the .bat file.  If you were using the windows "Run" dialog box, you would enter this:

"C:\test.bat" "ParameterA"

But how does one do this with Dexterity?  I've tried all combinations, with no luck.  HELP! 

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,137 Most Valuable Professional on at

    Just noticed this is a resurfaced old post, but responding anyway.

    Hi Ron

    You should be able to pass the parameters, but just adding them to the command line, separated by spaces.

    run application "", "C:\test.bat <parameter1> <parameter2>";

    Regards

    David

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans