Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Relative paths don't work in Dexterity Utilities macros?

Posted on by 20

I've recorded a Macro to build a chunk file using Dexterity Utilities.  I would like this Macro to run independent of where it's located on the disk.  Unfortunately, I can't get relative paths to work at all even though the documentation says that it's possible.

Here's some code:

 

# DEXVERSION=9.00.0068.0 2 2
  MenuSelect title File entry 'Close Source Dictionary'
  MenuSelect title File entry 'Close Editable Dictionary'
  MenuSelect title File entry 'Close Destination Dictionary'
  MenuSelect title File entry 'Open Source Dictionary...'
  FileOpen file '../Dynamics_myproject.dic' type 0

 

Interestingly, I get a error on line #8 even though the error occurs on line #6.   If I put in an absolute path, the macro runs fine.  What gives?

 

 

 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Relative paths don't work in Dexterity Utilities macros?

    Hi Bob,

    By default GP macros unable to run on relative path to create a chunk.it needs Absolute path to create a chunk to process.

    Thanks,

    Nataraj S

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans