win_create.bat 374 B

123456789101112131415161718192021
  1. @echo off
  2. SET SOME_VAR="main.cpp"
  3. DEL /S "%SOME_VAR%" || echo "file not found"
  4. SET SOME_VAR="main.cpp.swp"
  5. DEL /S "%SOME_VAR%" || echo "file not found"
  6. SET SOME_VAR=out
  7. RD /S /Q "%SOME_VAR%" || echo "file not found"
  8. CALL :_ex
  9. EXIT /B %ERRORLEVEL%
  10. :_ex
  11. echo >"main.cpp"
  12. echo >"main.cpp.swp"
  13. mkdir "out"
  14. echo >"out\main.o"
  15. echo >"out\a.out"
  16. echo >"out\conf.ini"
  17. EXIT /B 0