Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to Open folder of 'C' drive on click of custom Ribbon button

Posted on by 95

We have requirement that there is on Custom Ribbon Button when user clicks on this button it should open

folder of 'C' Drive.

I am using JavaScript Action for Button and I  want to open this path ''C:\Users\Andrew\Desktop\TestFolder'.

*This post is locked for comments

  • SnehaDohale Profile Picture
    SnehaDohale 95 on at
    RE: How to Open folder of 'C' drive on click of custom Ribbon button

    not working URI is proper

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: How to Open folder of 'C' drive on click of custom Ribbon button

    Hi Sneha,

    Please refer the following link. It describes the valid URL to open a folder in desktop.

    blogs.msdn.microsoft.com/.../file-uris-in-windows

    For the local Windows file path

    C:\Documents and Settings\davris\FileSchemeURIs.doc

    The corresponding valid file URI in Windows is:

    file:///C:/Documents%20and%20Settings/davris/FileSchemeURIs.doc

  • SnehaDohale Profile Picture
    SnehaDohale 95 on at
    RE: How to Open folder of 'C' drive on click of custom Ribbon button

    It's not working for me

  • Suggested answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at
    RE: How to Open folder of 'C' drive on click of custom Ribbon button

    file:///C:/Users/Andrew/Desktop/TestFolder

    window.location='file:///C:/Users/Andrew/Desktop/TestFolder'

    or

    window.open('file:///C:/Users/Andrew/Desktop/TestFolder')

    you could put this code in a web ressource.

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