powershell - 在 Powershell 中打开 CMD 命令
问题描述
我正在尝试在 powershell 脚本中从批处理中打开使用此命令:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -kiosk http://praxistipps.chip.de/ --overscroll-history-navigation=0 --window-position=0,0
所以我尝试了这个但没有成功:
Start-Process -FilePath "cmd.exe" -ArgumentList "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -kiosk http://praxistipps.chip.de/ --overscroll-history-navigation=0 --window-position=0,0
解决方案
为什么不直接调用chrome呢?
Start-Process -FilePath "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -ArgumentList "-kiosk", "http://praxistipps.chip.de/", "--overscroll-history-navigation=0", "--window-position=0,0"
推荐阅读
- javascript - 从子组件执行父函数不会给出正确的结果:React+Typescript
- spring-boot - java.util.concurrent.RejectedExecutionException:拒绝命令,因为线程池 queueSize 处于拒绝阈值
- django - 为什么 {{ attribute.label.tag }} 中的“label.tag”在 django 模板中不起作用?我们如何获取模板中列的标签?
- vue.js - 在不更改 URL 的情况下使用 vue-i18n 翻译 WebApp
- ios - UICollectionView 中的缩放 ImageView 不一致
- vb.net - String.Format() - 如何使用包含格式的变量?
- angular - 如何更改 Ionic 4 的 ion-range pin 字体和格式?
- java - 如何提高大型 JTable 的滚动性能?
- java - 多个 Xodus 应用程序访问/共享单个目录
- c# - Moq 对象总是返回 null ,为什么?