Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. @echo off
  2. call :Rekursiv
  3. goto :eof
  4.  
  5. :Rekursiv
  6. set str=teh cat in teh hat
  7. echo "Outside"
  8. echo %str%
  9. set str=%str:teh=the%
  10. echo %str%
  11. echo "Outside end"
  12.  
  13. for /D %%d in (*) do (
  14. cd %%~fd
  15.  
  16. set str=teh cat in teh hat
  17. echo %str%
  18. set str=%str:teh=the%
  19. echo %str%
  20.  
  21. call :Rekursiv
  22.  
  23. cd..
  24. )
  25.  
  26. exit /b
  27.  
  28. teh cat in teh hat
  29. the cat in the hat
  30.  
  31. "Outside"
  32. teh cat in teh hat
  33. the cat in the hat
  34. "Outside end"
  35. the cat in the hat
  36. the cat in the hat
  37. "Outside"
  38. teh cat in teh hat
  39. the cat in the hat
  40. "Outside end"
  41. the cat in the hat
  42. the cat in the hat
  43. "Outside"
  44. teh cat in teh hat
  45. the cat in the hat
  46. "Outside end"
  47. the cat in the hat
  48. the cat in the hat
  49. "Outside"
  50. teh cat in teh hat
  51. the cat in the hat
  52. "Outside end"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement