Open File Manager in C # and navigate to file (GO)

Source: Internet
Author: User

System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo ("Explorer.exe");
Info. Arguments = "/select," + "e:\\" + "a.xml";
System.Diagnostics.Process.Start (info);

System.Diagnostics.Process.Start (PSI); Reference: Use of Windows Explorer parameters. explorer/n This command opens an Explorer window with the default settings. The content that is displayed is typically the root directory of the drive where Windows is installed. explorer/e This command to start Windows Explorer with the default view. Explorer/e,c:\windows This command launches Windows Explorer with the default view and positions the focus on C:\Windows. Explorer/root, C:\Windows\Cursors This command starts Windows Explorer after focus is located in the C:\Windows\Cursors folder. This example uses C:\Windows\Cursors as the "root" directory for Windows Explorer. Note: Be aware of the comma following the "/root" parameter in the command. Explorer/select, C:\Windows\Cursors\banana.ani This command launches Windows Explorer after you select the "C:\Windows\Cursors\banana.ani" file. Note: Be aware of the comma following the "/select" parameter in the command. Windows Explorer parameters can be combined in one command. The following example shows a combination of Windows Explorer command-line parameters. Explorer/root, \\server\share, select, Program.exe This command starts Windows Explorer with a remote share as the "root" folder, and the Program.exe file is selected. Back to top Change Windows Explorer default Startup folder to change the default Startup folder for Windows Explorer: Click Start, point to All Programs, point to Accessories, and then right-click Windows Explorer. On the menu that appears, click Properties. In the Target box, append the/root command line argument to the%SystemRoot%\Explorer.exe command, and use the startup location that you want.

Open File Manager in C # and navigate to file (GO)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.