【问题标题】:How can I open the application folder in the Windows 8 file explorer without the Process class?如何在没有 Process 类的情况下在 Windows 8 文件资源管理器中打开应用程序文件夹?
【发布时间】:2013-11-07 22:50:25
【问题描述】:

我有一个使用 XAML 用 C# 创建的 Windows 8 应用程序,并在应用程序的设置魅力中添加了一个按钮。

此按钮的用途是在 Windows 8 文件资源管理器中打开应用程序的文件夹。

在我会使用的普通 C# 应用程序中:

System.Diagnostics.Process.Start("path/to/folder");

但是System.Diagnostics 不包含Process 对象。

谁能推荐一个解决这个问题的方法?

【问题讨论】:

标签: c# .net xaml


【解决方案1】:

你可以使用

var success = await Windows.System.Launcher.LaunchFolderAsync(folder);

https://msdn.microsoft.com/en-us/library/windows/apps/dn889617.aspx

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-11-20
    • 1970-01-01
    • 1970-01-01
    • 2013-08-11
    • 1970-01-01
    • 2017-07-19
    • 1970-01-01
    相关资源
    最近更新 更多