如何获取Windows资源管理器路径 [英] how to get windows explorer path

查看:161
本文介绍了如何获取Windows资源管理器路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

如何从当前的资源管理器中获取Windows资源管理器路径

http://i.stack.imgur.com/P4GAv.png [ ^ ]

推荐答案

检查以下答案

从资源管理器窗口中获取文件夹路径 [ ^ ]

使用c#获取每个资源管理器窗口的路径 [ ^ ]
check below answers
Get folder path from Explorer window[^]
Get the path of every explorer window with c#[^]


获取Internet Explorer的文件路径r您需要访问注册表项的应用程序:
To get the filepath to the Internet Explorer Application you need to access a Registry Key:
// required to access Registry
using Microsoft.Win32;

// required to use Process.Start
using System.Diagnostics;

// should work for Win 7/8
private string IEKey = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE";

private void LaunchIE()
{
    string IEPath = Registry.GetValue(IEKey,"Path","").ToString().TrimEnd(';') + @"\iexplore.exe";
    
     Process.Start(IEPath);
}


这篇关于如何获取Windows资源管理器路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆