首页 > 解决方案 > 当我使用动态 args powershell tr​​im 命令输出运行 exe 时。怎么修?

问题描述

我有脚本通过 &
例如运行一些命令

$output = & rc.exe /d N_MAJOR=1 /d N_MINOR=0 /d N_PATCH=0 version.rc

$output变量包含修剪的命令输出,例如

Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0

Copyright (C) Microsoft Corporation.  All rights reserved.



d:\tfs\

但它必须包含

Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation.  All rights reserved.


d:\tfs\...\version.rc(1) : error RC2135 : file not found: xx.ico

怎么了?

标签: windowspowershell

解决方案


推荐阅读