@echo off
cd /d %dp0
cd ..
cd ..
cd f
echo @echo off>test.bat
echo %%i>>test.bat
echo pause>>test.bat
start "" "test.bat"
带了2个符号的创建BAT以后会变成一个
@echo off
cd /d %dp0
cd ..
cd ..
cd f
echo @echo off>test.bat
echo %i变成一个百分号了,呵呵>>test.bat
echo pause>>test.bat
start "" "test.bat"