Advertisement
Guest User

Anna test

a guest
May 20th, 2012
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. @echo off
  2. SetLocal EnableDelayedExpansion
  3.  
  4. set ys=11
  5. set ye=12
  6. set /a nme=9
  7. set jan=Jan
  8. pause
  9.  
  10. if %ys% NEQ %ye% (
  11. echo in if
  12. pause
  13. set /a mdiff=nme-1
  14. if %mdiff% LEQ 9 (
  15. for /l %%B in (1,1,%mdiff%) do (
  16. for /1 %%C in (1,1,31) do (
  17. if %%B EQU 1 (
  18. set monthe=Jan
  19. echo !monthe!
  20. )
  21. if %%B EQU 2 (
  22. set monthe=Feb
  23. echo !monthe!
  24. )
  25. REM xcopy "C:\Tests\conversion\Data.%ye%\Month.%monthe%\Day.0%%C"
  26. )
  27. )
  28. )
  29. )
  30. echo %monthe%
  31. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement