TheProfosist

BAT CMD Line exists

Apr 13th, 2013
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. set rand=%random%
  2. set file="BECK01.mkv"
  3. set filelog="BECK01.mkv.log"
  4. :while
  5. if exist %rand%_%file% (
  6. set rand=%random%
  7. goto :while
  8. ) else (
  9. copy %file% %rand%_%file%
  10. copy %filelog% %rand%_%filelog%
  11. )
Advertisement
Add Comment
Please, Sign In to add comment