我使用以下代码打开一个文件
await Windows.System.Launcher.LaunchFileAsync(fileToLaunch);
现在我必须检查文件是处于打开模式还是关闭模式。请帮帮我。
我想你的意思是,如果启动真的有效,那么方法调用结果应该告诉你
Windows.System.Launcher.launchFileAsync(file, options).then(
function (success) {
if (success) {
} else {
}
});
在此之后,您可能无法获得有关文件状态的信息。