Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.5 KiB

  1. REM t5 dir1 dir2
  2. REM dir1 is base directory the script runs out of.
  3. REM dir2 is a directory that is the target of some rename operations.
  4. cd /d %1
  5. rem set filelist=a b c d e f g h i j k l m n o p q r s t u v w x y z
  6. set filelist=a b c d e f g h i j
  7. del S5test*
  8. delnode /q .\DIR-A
  9. del %2\S5test*
  10. REM goto fastloop
  11. :slowloop
  12. for %%x in (%filelist%) do del %2\S5testnew%%x && sleep 1
  13. for %%x in (%filelist%) do echo create 1>S5test%%x && sleep 1
  14. REM for %%x in (%filelist%) do ren S5test%%x S5testnew%%x && sleep 1
  15. REM for %%x in (%filelist%) do mv S5testnew%%x %2 && sleep 1
  16. for %%x in (a b c d e f g) do delnode /q DIRDIRDIR%%x
  17. for %%x in (a b c d e f g) do md DIRDIRDIR%%x && echo create > DIRDIRDIR%%x\FILEFILE%%x && sleep 8 && del DIRDIRDIR%%x\FILEFILE%%x && rd DIRDIRDIR%%x
  18. set dirlist=A B C D E F G
  19. set dd=.
  20. for %%x in (%dirlist%) do set dd=!dd!\DIR-%%x&& md !dd! && echo create > !dd!\FILE-%%x
  21. sleep 60
  22. delnode /q DIR-A
  23. goto QUIT
  24. goto slowloop
  25. :fastloop
  26. for %%x in (%filelist%) do del %2\T5testnew%%x
  27. sleep 5
  28. for %%x in (%filelist%) do del %2\T5test2new%%x
  29. sleep 5
  30. for %%x in (%filelist%) do echo create 1>T5test%%x
  31. sleep 5
  32. for %%x in (%filelist%) do echo create 1>T5test2%%x
  33. sleep 5
  34. for %%x in (%filelist%) do ren T5test%%x T5testnew%%x
  35. sleep 5
  36. for %%x in (%filelist%) do ren T5test2%%x T5test2new%%x
  37. sleep 5
  38. for %%x in (%filelist%) do mv T5testnew%%x %2\T5testnew%%x
  39. sleep 5
  40. for %%x in (%filelist%) do mv T5test2new%%x %2
  41. sleep 5
  42. goto fastloop
  43. :QUIT