gpt4 book ai didi

variables - Echo %variable% 在 MS-DOS 6.22 中显示 %variable%

转载 作者:行者123 更新时间:2023-12-03 08:06:14 26 4
gpt4 key购买 nike

我的虚拟 PC 在 MS-DOS 6.22 上运行时出现问题。
我需要使用变量 Date ,但我无法得到它,因为每当我尝试回显变量时,它都会显示 %variable%反而。

我在 Windows 控制台上试过这个:

Set name=test
echo %name%
the result was "test"

当我在虚拟机中尝试时,我得到了 %name%其结果。

请问有人知道如何解决吗?

最佳答案

%Date% 不是 MSDos 6.22 的一部分。它只有日期命令。

command /c echo. |date

回显日期命令

关于variables - Echo %variable% 在 MS-DOS 6.22 中显示 %variable%,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28021862/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com