defect122

Windows Batch Open textfiles and delays

Sep 7th, 2014
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Open textfiles and wirte in there with a delay
  2.  
  3. @echo off
  4.  
  5. echo. 2>file.txt
  6. echo. 2>file2.txt
  7. echo. 2>file3.txt
  8. echo. 2>file4.txt
  9.  
  10. start file.txt
  11. echo You > file.txt
  12. ping localhost -n 2 > nul
  13. start file2.txt
  14. echo have just > file2.txt
  15. ping localhost -n 2 > nul
  16. start file3.txt
  17. echo opened > file3.txt
  18. ping localhost -n 2 > nul
  19. start file4.txt
  20. echo four textfiles > file4.txt
  21.  
  22. exit
Advertisement
Add Comment
Please, Sign In to add comment