Skip to content

Instantly share code, notes, and snippets.

@a4099181
Last active December 2, 2016 19:35
Show Gist options
  • Save a4099181/fe023261fa0c0b0b03c4a64b88e31d96 to your computer and use it in GitHub Desktop.
Save a4099181/fe023261fa0c0b0b03c4a64b88e31d96 to your computer and use it in GitHub Desktop.
One-liner to make many tiles with single command (it supports: 1. continuation - it skips those coords where destination folder exists; 2. custom configuration file per tile).
FOR /L %Y IN (48,1,55) DO FOR /L %X IN (12,1,23) DO IF NOT EXIST "zOrtho4XP_+%Y+0%X\Earth nav data" IF EXIST "zOrtho4XP_+%Y+0%X\Ortho4XP.cfg" ( "%USERPROFILE%\AppData\Local\Programs\Python\Python35\python.exe" Ortho4XP.py %Y %X "zOrtho4XP_+%Y+0%X\Ortho4XP.cfg" ) ELSE ( "%USERPROFILE%\AppData\Local\Programs\Python\Python35\python.exe" Ortho4XP.py %Y %X )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment