小编Flo*_*ong的帖子

使用PowerShell启动Metro风格的应用程序

我正在尝试为Windows 10编写一个powershell脚本,它将自动启动Metro风格的应用程序.Start-Process cmdlet似乎应该可以工作,但除非我提供.exe的路径,否则我无法启动它

例如,以下输入有效:

    Start-Process 'C:\Program Files\Internet Explorer\iexplore.exe'
Run Code Online (Sandbox Code Playgroud)

不幸的是,Metro风格的应用程序没有可执行文件.我需要用什么文件来启动它们?例如,如果我想启动Windows应用商店,我该怎么做?

谢谢

start-process powershell-3.0 appx windows-10 uwp

7
推荐指数
1
解决办法
7708
查看次数

TypeScript 从扩展类函数重写中调用基类函数

如果我有一个覆盖基类函数的扩展类,我可以在扩展类函数中调用基类函数吗?类似于:

class Base {

  DoSomething() {

    console.log("base class function");

  }

}

class Derived extends Base {

  DoSomething() {

    this.base.DoSomething();

    console.log("extended class function");

  }

}
Run Code Online (Sandbox Code Playgroud)

Derived.DoSomething() 的输出理想情况下如下所示:

"base class function"
"extended class function"
Run Code Online (Sandbox Code Playgroud)

这在 TypeScript 中可能吗?

extends base-class typescript

1
推荐指数
1
解决办法
1511
查看次数