Code: Select all
SETLOCAL EnableDelayedExpansion
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set "DEL=%%a" )
:: Put caode here
:c
echo off
<nul set /p ".="%DEL% " " >> "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1
goto :eof
to color a start screen to my batch file but keep getting strange files with no extention on my work folder and i can't delete them any idea why and how to stop getting these files.
here is my code:
Code: Select all
@echo off
cls
mode 80,30
:: Color Function Part1
SETLOCAL EnableDelayedExpansion
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set "DEL=%%a" )
:: Start Screen Picture
call :c 0c " ii " &echo:
call :c 0c " vMb ii" &echo:
call :c 0c " CMMMC MMi" &echo:
call :c 0c " iBMMMBC MHMM " &echo:
call :c 0c " idMMMBY MHM " &echo:
call :c 0c " i ioMMMBv PMMHM " &echo:
call :c 0c " ZMBXiiYbBMMWi iWMMMHM " &echo:
call :c 0c " IMMMMBbEFBMMMOi ibiiMBMMHH " &echo:
call :c 0c " AWMMMMMBQOBMMMQi ii BMBjEBMMH " &echo:
call :c 0c " vvjtZbdBBQBMMp BMMFjBMEWMMi" &echo:
call :c 0f " iWMBbQFQBWQBBMBi vi QMMBEBMMBn " &echo:
call :c 0f " XMMMMBBBBWQWMMb iMMzidMMMMWi " &echo:
call :c 0f " tWOQdEdEWBWBMMi BMMMMOWMMF " &echo:
call :c 0f " iQBBWOBWBBBMME EMOQBBMMMn " &echo:
call :c 0f " oBMMBBBBBBBMMpBBWbPBMMS " &echo:
call :c 0f " CBBBBBBBBMMMWQbEEMv " &echo:
call :c 0f " iiYjtXZBMBBBBBBBMMMBBBMME " &echo:
call :c 0f " WMMMMMMMMMMMMMMMBBBBBBBBBBBBMMMMMM " &echo:
call :c 0f " izXcYoQBBBBBBMMMMMBBBMBMBBBMMMMMMMMi " &echo:
call :c 08 " MMMWAobWMBMMMMBMMMMMBOWBdvi iMMMM " &echo:
call :c 08 " ivoQBBEOMMBY MMMBMBBWMB MM " &echo:
call :c 08 " BMYipMMZi vMMMMMMMMMB i " &echo:
call :c 08 " MMMc BMMMMMMMBMB " &echo:
call :c 08 " F ioMMMMMMMW M " &echo:
call :c 08 " iMMMMMMMMMMi " &echo:
call :c 08 " EMMMJAMM " &echo:
call :c 08 " Bi E " &echo:
pause >nul
goto Main
:Main
:: Here I write My Code For The batch
:: Color Function Part2
:c
echo off
<nul set /p ".="%DEL% " " >> "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1
goto :eof
:: Main Menu
and same problem happen here:
Code: Select all
[size=85]@echo off
cls
mode 80,55
Rem These are in use " %%a, %DEL%, %~2, %1, :C,
SETLOCAL EnableDelayedExpansion
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set "DEL=%%a"
)
color 0D
::==============================================================================================================
echo
call :C 0f " jvvi vbi" & echo:
call :C 0f " MMBEEMMMMMMMMo" & echo:
call :C 0f " vOMMMicZi Mj" & echo:
call :C 0f " MMC vM" & echo:
call :C 0f " iM iM" & echo:
call :C 0f " Mi iM" & echo:
call :C 0f " M M" & echo:
call :C 0f " jM M" & echo:
call :C 0f " M ZQMiMFB Mv" & echo:
call :C 0f " iQQWBBBWCi MB MiM MiM CM ipBBBBWQP" & echo:
call :C 0f " AO iSQWzi MM bXiM M AC Mc cbBdv iM" & echo:
call :C 0f " MoM pv iIBBQIjMB iM MY bM M MCjdBBBti bizBBM" & echo:
call :C 0e " iMMM MM" & call :C 0f "M iMMoMMWBPBIBFMMMBBMMi Z" & call :C 0E "MMcoMMM" & echo:
call :C 0e " iMMM MMMi" & call :C 0f "C Ji iM in v" & call :C 0E "MMMciMMM" & echo:
call :C 0E " YMMM MMM MM" & call :C 0f "z vI" & call :C 0E "CY" & call :C 0f "tti i" & call :C 0E "MMioMMCN" & echo:
call :C 0E " JMMB MMM MMMi" & call :C 0f "dBIcviiivivjz" & call :C 0E "FbdP" & call :C 0f "zFYciviiicjEMi" & call :C 0E "MMMiiMMdM" & echo:
call :C 0E " bMMO MMM MMM MM iviivvzBbXiibivXBPtviiic EMipMMYiMMO MMMi" & echo:
call :C 0E " BMMZ MMM MMM MN" & call :C 0c "WMMMMMMMi" & call :C 0F "00000" & call :C 08 "MMMMMMMMi" & call :C 0E "iMi MMo MMB MMM" & echo:
call :C 0E " MMMX MMB MMM MM" & call :C 0c "CMMMMMMMi" & call :C 0F "00000" & call :C 08 "MMMMMMMM" & call :C 0E "IMi MMZ MMM MMMi" & echo:
call :C 0E " MMMv iMM MMM MM" & call :C 0c "iMMMMMMMi" & call :C 0F "00000" & call :C 08 "MMMMMMMM" & call :C 0E "MMt MMB MMM MMMi" & echo:
call :C 0E " MMMi vMM MMM MMB" & call :C 0c "MMMMMMMi" & call :C 0F "00000" & call :C 08 "MMMMMMMv" & call :C 0E "MMI MMB MMM MMMC" & echo:
call :C 0E " MMM CMMC MMB MMM" & call :C 0c "iMMMMMMi" & call :C 0F "00000" & call :C 08 "MMMMMMM" & call :C 0E "IMMQ MMM MMM BMMI" & echo:
call :C 0E " MMM bMMi MMZ MMMM" & call :C 0c "MMMMMMi" & call :C 0F "00000" & call :C 08 "MMMMMMc" & call :C 0E "MMMB MMM MMM bMMW" & echo:
call :C 0E " MMM WMM YMMo MMMWi" & call :C 0c "MMMMMi" & call :C 0F "00000" &call :C 08 "MMMMMM" & call :C 0E "BIMMM MMM MMM zMMP" & echo:
call :C 0E " MMM MMM IMMv MME M" & call :C 0c "iMMMMI" & call :C 0F "00000" & call :C 08 "MMMMM" & call :C 0E "WM MMM MMM QMM vMMM" & echo:
call :C 0E " iMMM MMM bMMi iMMZ MM" & call :C 0c "MMMi" & call :C 0F "00000" & call :C 08 "MMMM" & call :C 0E "pMM MMM MMM PMMi MMMi" & echo:
call :C 0E " iMMM MMM BMM tMMC iMvM" & call :C 0c "MMi" & call :C 0F "00000" & call :C 08 "MMZ" & call :C 0E "WEBM MMM BMM CMMC MMMo" & echo:
call :C 0E " CMMB MMM MMM IMMvjM CMn" & call :C 0c "Bb" & call :C 0F "00000" & call :C 08 "Mi" & call :C 0E "MM M MMM QMMivMMF MMMi" & echo:
call :C 0E " IMMB MMM MMM QMMiZ MMibi" & call :C 0c "v" & call :C 0F "00000" & call :C 08 "i" & call :C 0E "AJivbiMi B BMM oMMv MMQI" & echo:
call :C 0E " QMMp MMM MMM BMMCMtWjB MoviApniCQM iEbtMbWMMiXMMt MMB MMMM" & echo:
call :C 0E " BMMo MMB MMM MMMMiB" & call :C 0f " QEME" & call :C 0e "UoMiiIM" & call :C 0f "iMEM" & call :C 0e " dMMMiiMMd MMM MMM" & echo:
call :C 0E " MMMv MME MMM MMMB" & call :C 0f " iM M SM" & call :C 0e "Y McME" & call :C 0f "iiM MM " & call :C 0e "KKiMMW MMM MMMMoM" & echo:
call :C 0E " MMMi MMp MMM MpEi" & call :C 0f " BM MGH" & call :C 0e "MMOM MMb" & call :C 0f "uUM YMnB" & call :C 0e "B MMM MMM MMMYY" & echo:
call :C 0E " MMM tMMC MMM i" & call :C 0f " MB nMQMio" & call :C 0e "MMvvM MM" & call :C 0f "oMQMMHHM " & call :C 0e "iiMMM MMM BMMoM" & echo:
call :C 0E " MMM UMMv MMt" & call :C 0f " iM fgb iBj" & call :C 0e "BM IM BMo" & call :C 0f "vM iY iM" & call :C 0e "iMMM MMM OMMo" & echo:
call :C 0E " MMM BMMv M" & call :C 0f " iMMfdovffMc" & call :C 0e "MM BM IMv" & call :C 0f "oMFggWftZM " & call :C 0e "ivM MMM zMMP" & echo:
call :C 0E " MMM MMMv" & call :C 0f " BBBviEJMM YM" & call :C 0e "MMM Mii MM" & call :C 0f "QM CMMiM M" & call :C 0e " yiMMMijMMM" & echo:
call :C 0E " MMM MMi" & call :C 0f " hghMiuMp iMii" & call :C 0e "pQMM MMF MMv" & call :C 0f "BM Mb jBBk" & call :C 0e " iOMIiMMM" & echo:
call :C 0E " MMM z" & call :C 0f " icddBtfbMghjuh" & call :C 0e "MMMB" & call :C 0e "MMM" & call :C 0e "MMMv" & call :C 0f "ihhiMgfMihiv " & call :C 0e " v CMMM" & echo:
call :C 0E " MMB" & call :C 0f " vMBSiotCFcQYvMZ" & call :C 0e "MBMM" & call :C 0e " MME" & call :C 0e "QMBIM" & call :C 0f "iMMiBvbCnJYiIM " & call :C 0e "uuMMM" & echo:
call :C 0E " Mi" & call :C 0f " MBMMMBtQDD" & call :C 0e "n WAMjvvW " & call :C 0e " CiMQMiioPJ" & call :C 0f "iEYMMMMBZ" & call :C 0e " M" & echo:
call :C 0E " i MMMB vZdBMMCMMbMQBQBJMMMZMMBnQBBMBBMWBMMMMn iMMMj" & echo:
call :C 0E " BMb MMi" & echo:
call :C 0E " BM Arab Republic Of Egypt ZM" & echo:
call :C 0E " BMC BMi" & echo:
call :C 0E " JME MM" & echo:
call :C 0E " nBMMMMQZci ivPBMMMMEi" & echo:
call :C 0E " ijFQBMMMMMMMMMMMBQQMMMMMMMMMMMMMBdti" & echo:
::==============================================================================================================
:C
echo off
<nul set /p ".="%DEL% " " >> "%~2"
findstr /v /a:%~1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1
goto :eof[/size]