Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我想做的。如果我这样做,我有一个变量名
echo %a% >txt.txt
它将存储 a 的值
我要存储在 a 中的是文本
%a%
像这样。
试过了
%%a%% ^%a^% %%%a%%% %%%^ a^ %%
这将为您工作并突出显示变量:
echo %%a%%>txt.bat & notepad++ txt.bat
或者,更高级:
echo %%a%%>txt.cmd & notepad++ txt.cmd