我批量制作了一个简单的小程序,逐字逐句地输入" _text"的内容。变量:
@echo off
SET _start=-1
SET _length=1
SET _text=This is an automated typing machine.
:loop
SET /a "_start=_start+1"
CALL SET _substring=%%_text:~%_start%,1%%
<nul set /p =%_substring%
ping -n 1 -w 1.1.1.1 > nul
goto :loop
但是,如果你运行程序,你可以看到&#34; _text&#34;中的任何空格。变量被跳过了。我该如何解决这个问题?
答案 0 :(得分:2)
您可以这样做:
Error: Duplicate declaration: File[/etc/ssl/private/dev1.pem] is already declared in file /tmp/vagrant-puppet/modules-2134b0ea668add24edb5ea5a9ee9f8a1/nb_tsg/manifests/mon.pp:25; cannot redeclare at /tmp/vagrant-puppet/modules-2134b0ea668add24edb5ea5a9ee9f8a1/nb_monitoring/manifests/azure_limits_sa.pp:43 on node dev1-mon1
但是,如this text-file中所述,您应该放置从this answer复制的退格字符,而不是[bs]。