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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:07:38+00:00 2026-05-27T02:07:38+00:00

I can easily get Explorer to open up and select a file using the

  • 0

I can easily get Explorer to open up and select a file using the following :

string argument = @"/select, " + filePath;
System.Diagnostics.Process.Start("explorer.exe", argument);

However when I come to opening up the next file, I will get a new instance of explorer. This could result in our users opening having hundreds of explorers open by the end of an intensive day.

How can I get it to reuse an already open explorer instance to select the file I want?

Visual Studio can do this when you right click on a tab and select Open containing folder… providing explorer is already opened at the same directory. How has it been able to do this?

  • 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-05-27T02:07:38+00:00Added an answer on May 27, 2026 at 2:07 am

    How about embedding the Explorer window into your application by using the ExplorerBrowser object? That way, you can just keep reusing the window by calling IExplorerBrowser::BrowseToObject on a different folder when you want to show a different folder.

    Trying to renavigate an existing Explorer window is problematic because you don’t know what the user did with that window while you weren’t looking. Maybe they used the Folder pane to go to some other folder, and then boom you just ripped that folder out from under them and sent it somewhere else. Or maybe they closed it! Opening a new Explorer window is a fire-and-forget type of thing. If you want to retain control of the window, then you need to exercise more explicit control (e.g. via ExplorerBrowser above).

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

Sidebar

Related Questions

When using PyWin I can easily load a python file into a fresh interactive
I know I can easily get messages inside [CustomMessages] AdditionalIcons=blablabla using this code: ExpandConstant('{cm:AdditionalIcons}');
we can easily get index of combobox using FindString method int index = cboCountryTwoCode.FindString(localJob.DeliveryCountryTwoCode.Trim());
I'm looking for ActiveX components that can easily: get and send emails via SMTP
Given an XDocument instance, how can I easily get a TextReader that represents that
I can get easily see what projects and dlls a single project references from
I can easily ascend the class hierarchy in Ruby: String.ancestors # [String, Enumerable, Comparable,
You can easily get an array value by its key like so: $value =
I can easily get the unread notifications with this query: https://graph.facebook.com/USER_ID/notifications?access_token=ACCESS_TOKEN Is it possible
On Linux, an application can easily get its absolute path by querying /proc/self/exe .

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.