【发布时间】:2013-12-12 06:52:58
【问题描述】:
我使用此代码打开一个文件
await Windows.System.Launcher.LaunchFileAsync(fileToLaunch);
现在我必须检查文件是处于打开模式还是关闭模式。 请帮帮我。
【问题讨论】:
标签: windows c#-4.0 microsoft-metro
我使用此代码打开一个文件
await Windows.System.Launcher.LaunchFileAsync(fileToLaunch);
现在我必须检查文件是处于打开模式还是关闭模式。 请帮帮我。
【问题讨论】:
标签: windows c#-4.0 microsoft-metro
我猜你的意思是如果启动确实有效,方法调用结果应该告诉你
Windows.System.Launcher.launchFileAsync(file, options).then(
function (success) {
if (success) {
} else {
}
});
在此之后,您可能无法获得有关文件状态的信息。
【讨论】: