批处理将程序执行结果设置给环境变量时间:2021-11-08 23:11:32 C:\>@for /f "usebackq tokens=*" %i in (`echo Hello world.`) do @set msg=%iC:\>echo %msg%Hello world.C:\>