Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Shell execute command from button on page

Posted on by Microsoft Employee

Hi all, 

I want to create a button (can be either from Ribbon Workbench or HTML web resource) that triggers a shell execute command to open a directory in the network database server.

ShellExecute(0, PChar('Open'), PChar(xHelpFile), '', '', SW_SHOWNORMAL) <= 32

Where 

xHelpFile = ‘\\DSICRM\CtelWin\Online Help\SW Latest\DSISWHelp.chm’

How can I do the same?

Thanks,

Jon

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Shell execute command from button on page

    Hi Mahender,

    Thanks for your reply.

    The link that you have shared is for desktop apps only (client). How can I do this on browser/crm online?

    Thanks,

    Jon

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Shell execute command from button on page

    Hi,

    You can't access resources through plugins/custom workflow, but you should be able to do that using javascript something like this msdn.microsoft.com/.../gg537745(v=vs.85).aspx without any problem.

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Shell execute command from button on page

    Hi Jon,

    I don't think you can execute shell script on CRM Online. Even if you are able (I don't have any experience on that) but I am pretty sure you cannot access the network resources on CRM online.

    Hope this helps.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans