Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Original

By: ronaldfourfive on Jan 24th, 2013  |  syntax: DOS  |  size: 1.19 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. C:\Users\Ronald>rem @echo off
  2.  
  3. C:\Users\Ronald>setlocal
  4.  
  5. C:\Users\Ronald>set XMLs_src=.\mod\store\XMLs
  6.  
  7. C:\Users\Ronald>set XMLs_dest=.\mod\0.1.2\map\data
  8.  
  9. C:\Users\Ronald>set maps_src=.\mod\store\models
  10.  
  11. C:\Users\Ronald>set maps_dest=.\mod\0.1.2\sky\stuff
  12.  
  13. C:\Users\Ronald>rmdir /q /s ".\mod\0.1.2\map\data"  2>NUL
  14.  
  15. C:\Users\Ronald>rmdir /q /s ".\mod\0.1.2\sky\stuff"  2>NUL
  16.  
  17. C:\Users\Ronald>mkdir ".\mod\0.1.2\map\data"
  18.  
  19. C:\Users\Ronald>mkdir ".\mod\0.1.2\sky\stuff"
  20.  
  21. C:\Users\Ronald>for /L %X in (1 1 15) do (
  22. call :rnd rn  
  23.  call :xml  
  24.  call :map  
  25. )
  26.  
  27. C:\Users\Ronald>(
  28. call :rnd rn  
  29.  call :xml  
  30.  call :map  
  31. )
  32.  
  33. C:\Users\Ronald>set numfiles=0
  34.  
  35. C:\Users\Ronald>for / %I in (.\mod\store\models\*) do set /a numfiles+=1  1>NUL
  36.  
  37. C:\Users\Ronald>set /a rn=30092 * 0 / 32768 + 1  1>NUL
  38.  
  39. C:\Users\Ronald>goto :EOF
  40.  
  41. C:\Users\Ronald>set c=0
  42.  
  43. C:\Users\Ronald>for %I in (.\mod\store\XMLs) do (
  44. set /a c+=1  1>NUL  
  45.  if 0 == move "%I" ".\mod\0.1.2\map\data"
  46. )
  47.  
  48. C:\Users\Ronald>(
  49. set /a c+=1  1>NUL  
  50.  if 0 == move ".\mod\store\XMLs" ".\mod\0.1.2\map\data"
  51. )
  52.  
  53. C:\Users\Ronald>goto :EOF
  54.  
  55. C:\Users\Ronald>set c=0
  56.  
  57. C:\Users\Ronald>    if 0== (