메신저로 나와 나를 위해 다른 빈도로 문자를 바꿀 수 있도록 스크립트를 만들고 있지만, 내가 어떻게 작동하는지 알아내는 것처럼 그것은 나에게 버그가 생기고 dir 또는 md 명령을 만들지 않고 폴더를 만들기 시작합니다. 문자를 통해 필터내 코드가 md 또는 makedir없이 폴더를 생성하는 이유는 무엇입니까?
@echo off
:top
set /p in=
SET strterm=
SET mytext=%in%
SET tmp=%mytext%%strterm%
:loop
SET char=%tmp:~0,1%
SET tmp=%tmp:~1%
echo %char%
나에게 '만약'문
if %char% == a (powershell -Command "[console]::Beep(200,200)") && goto abd
if %char% == b (powershell -Command "[console]::Beep(220,200)") && goto abd
and so on... [a-z A-Z 0-9 <space> ;+=/\,[email protected]`~#{}[]().-_': ]
내 출력을 제공하기 위해 폴더를 만들 것 그리고 그 중
:abd
IF NOT "%tmp%" == "%strterm%" GOTO loop
goto top
goto end
:end
powershell -Command "[console]::Beep(10000,300)"
아무것도가 생겼는데? 여기
이 문제 https://youtu.be/3LLGj2brD2w Heres는 전체 코드 https://pastebin.com/e0qPeaU6
변수로'tmp' 또는'temp'를 사용하지 마십시오. 그들은 특별한 의미 (임시 파일의 위치)를 가지고 있습니다. – Magoo