create.bat 370 B

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