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 8060157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:54:05+00:00 2026-06-05T09:54:05+00:00

I have a UNC path like \\machine\share\folder\something\ and I need to be able to

  • 0

I have a UNC path like \\machine\share\folder\something\ and I need to be able to open that location in windows explorer when a button is clicked. What WPF control should I use and how should I bind to that control from my viewModel?

An example of my viewModel is:

public class ViewModel : Screen {
    public string LogPath { get { return "\\machine\share\folder\something"; } }
}

I’m using Caliburn Micro, but I don’t know if that’s relevant.

  • 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-05T09:54:07+00:00Added an answer on June 5, 2026 at 9:54 am

    If I’m understanding your question properly, the use of WPF, Caliburn, etc is fairly irrelevant. You simply need a function on your ViewModel that runs the following code:

            Process.Start(new ProcessStartInfo
                          {
                              FileName = "\\\\machine\\share\\folder\\something",
                              UseShellExecute = true
                          });
    

    I would use a simple Button control with a Command that is bound to your ViewModel, and potentially a CommandArgument to specify the path to launch if you need to.

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

Sidebar

Related Questions

I have a .NET client app that intermittently loses connection to a UNC share
I have a UNC path of \\houtester\common\log library\graphics that I'm needing to use in
On a Windows 7 (or server) box, we have a folder on a UNC
I have a chunk of code that I'm using to get the UNC path
I have a windows forms app running on a machine that is not on
I have an assembly on a shared folder (UNC-path only, no mapped drive). When
Our company has a share point document server where the UNC looks something like
Have a matrix report now that has Position, Hours and Wages for a location
I am trying to peel off the last part of a unc path that
What's the UNC path to a folder on my local computer, and how can

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.