CODE: [Copy to clipboard]@echo off&Setlocal EnableDelayedExpansion set /p "add=请输入:" echo !add!>>a.txt start notepad a.txt