相关疑难解决方法(0)

为什么管道后"设置-P"不起作用?

C:\>type c:\output.txt
abcd
C:\>type c:\output.txt | set /p V1=

C:\>set
... A bunch of junk, NOT seeing "V1"
Run Code Online (Sandbox Code Playgroud)

发生了什么?根据SET我见过的所有文档,%V1%应该从上面分配了"abcd"的值,不是吗?

如果重要的话,我使用的是Windows XP Pro,SP3.

cmd pipe batch-file set

9
推荐指数
2
解决办法
5178
查看次数

标签 统计

batch-file ×1

cmd ×1

pipe ×1

set ×1