- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们的 IT 部门正在转向 Windows 8,每个人都开始使用 PowerShell 作为他们的默认 Windows 命令行环境,而不是 cmd.exe
.
不幸的是,PowerShell 会评估您在其中键入的内容,并且很难将原始命令行参数传递给程序。
例如我有一个程序 inventory.exe
它需要一个特殊的字符串来格式化其输出。我无法在 PowerShell 中传递这个特殊字符串,因为我收到一个神秘错误:
PS C:\Users\Administrator> inventory.exe 'inventory "," date "," owner'
inventory.exe error: No comma allowed
'inventory "," date "," owner'
字符串以某种方式传递给
inventory.exe
程序结果它打印了一个错误。
cmd.exe
中运行正常:
C:\Documents and Settings\boda> inventory.exe 'inventory "," date "," owner'
... (the output that I expect) ...
%
之类的字符,情况会更糟。 ,
$
在 PowerShell 中。
最佳答案
如果您使用的是 Powershell v3.0,则有一种新语法可以使 Powershell 避免对参数进行任何额外的解析。就像是:
inventory.exe --% 'inventory', 'date', 'owner'
关于powershell - 如何通过 PowerShell 中的命令行将原始字符串传递给命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18187020/
我知道这个问题已经被问过多次了。我已经在 stackover flow 上浏览了很多票,但我似乎找不到任何我能清楚理解的东西。我已经能够让 Admob 横幅出现在我的应用程序中,但我无法弄清楚如何将它
使用 miranda 进行编码时遇到问题,我只是函数式编程的新手,所以如果我不犯容易的错误,请狠狠地打我一巴掌,这样我就学会了 无论如何,我在第 12 行遇到错误,因为 unifyin char wi
例如,我有一个DataFrame A如下 A 0 1 2 现在我想将 DataFrame B 中的每 2 行插入到 A 中,每 1 行插入一次,B 如下 B 3 3 4 4 5 5 终于要了 A 0
我正在寻找一个针对 MSBuild.exe 运行的命令,该命令仅采用 MVC 4 项目并将其发布到给定目录。 例如, MSBuild /.csproj -publish -output=c:/fold
我的 SQL 行有问题,当使用 å ø æ 时,它们会被插入为 ø æ å,看起来不错,但是当我在页面上回显该行时,我得到一个 �。 如果我使用其他排序规则,我会得到一个“?”而不是 � 最佳答案 您
我是一名优秀的程序员,十分优秀!