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

Notifications

Announcements

No record found.

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,095 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans