Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8607359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:20:16+00:00 2026-06-12T03:20:16+00:00

How can I link to files on network drives in a Windows environment from

  • 0

How can I link to files on network drives in a Windows environment from Org-mode?

I get the error:

eval: ShellExecute failed: The system cannot find the file specified.

with this sort of link:

[[//share/path/to/file.csv]]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T03:20:18+00:00Added an answer on June 12, 2026 at 3:20 am

    I also had the same problem. I traced it to org-open-at-point transforming the PATH to something that w32-shell-execute cannot open. Using the defadvice below, I am able to open // and \ network paths.

    (defadvice w32-shell-execute (around 
                                  workaround-for-org-w32-shell-execute
                                  activate)
      "Replace w32-shell-execute PATH directory seperators to Windows
    backslash when PATH starts with '//' (i.e. Network path). This
    allows allowing org-mode links in org-mode files like
    [[\\\\myserver\\mypath\\mydoc.doc][mydoc.doc]] to be opened by
    org-open-at-point. Forward slashes / are also accepted.
    
    org-open-at-point transforms the links to //../../ but
    unfortunately w32-shell-execute does not accept that."
      (let ((operation (ad-get-arg 0))
            (path      (ad-get-arg 1)))
        (when (and (string-equal operation "open")
                   (eql (string-match "//" path 0) 0))
          (setq path (replace-regexp-in-string "/" "\\\\" path))
          ;; debug (message "Opening %s" path)
          (ad-set-arg 1 path))
        ad-do-it))
    

    Try [[//127.0.0.1/c$$]]

    This is a quick and dirty fix, but “it works on my machine”.

    Verified on Emacs 24.2, Org-mode 7.9.11.

    Edit: The comment about “However, a big usage case for me is opening other types of files (eg. MS Office files)” works for me when I add the following associations to org-mode. I can open Microsoft Word, Excel, etc, using normal org-mode urls like [[\server\share\piyo.doc]]

    (mapc (lambda (file-name-matcher)
        (add-to-list 'org-file-apps
                     (cons file-name-matcher 'default) 'append))
      (list "\\.doc\\'"
            "\\.xls\\'"
            "\\.ppt\\'"))
    

    Edit: The comment about “[[file+sys:]]” is “open [a file] via OS, like double-click”, which can be achieved with the above associations. On my Windows computer, I have not needed “[[file+sys:]]”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application...where I can get an excel file from network drive...using
How can I link .scss files to be automatically use css color scheme?
How can I link to resources such as css and javascript files? My default
is there a method to link specific files so that I can reference them
I have two PHP files that I need to link. How can I link
In HTML, how do you link to a file that the browser can only
can I check if a file exists at a URL? This link is very
I can link the results of an existing table/view to an Excel spreadsheet (by
In svn you can link a repository to any folder in another svn repository.
I'm using passport.js and I'm wounding if I can link a facebook id to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.