C:\>type c:\output.txt abcd C:\>type c:\output.txt | set /p V1= C:\>set ... A bunch of junk, NOT seeing "V1"
发生了什么?根据SET我见过的所有文档,%V1%应该从上面分配了"abcd"的值,不是吗?
SET
如果重要的话,我使用的是Windows XP Pro,SP3.
cmd pipe batch-file set
batch-file ×1
cmd ×1
pipe ×1
set ×1