Wacky_rubia

tempfile

Dec 14th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. @echo off
  2. if "%1" == "/?" echo This_file_create_new_file & goto :eof
  3. set r=%cd%
  4. if "%1" NEQ "" (
  5. cd %1\
  6. )
  7. set p=Nastya
  8. set y=.tmp
  9. :f
  10. set p=%p%%random%
  11. if EXIST %p%.tmp (
  12. goto :f
  13. ) else (
  14. echo %p%.tmp
  15. echo. >%p%.tmp
  16. )
  17. cd %r% 1>nul
  18. goto :eof
Advertisement
Add Comment
Please, Sign In to add comment