cd c:\xu cd .. set parentPath=%~dp0 move c:\xu\uninstall.bat %parentPath% rd /s/q c:\xu del %0 @echo on echo "uninstall success!" exit
需要删除的目录为c:\xu
cd c:\xu cd .. set parentPath=%~dp0 move c:\xu\uninstall.bat %parentPath% rd /s/q c:\xu del %0 @echo on echo "uninstall success!" exit
需要删除的目录为c:\xu