Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
How to I make a batch file that will juggle folders? For instance, I want a desktop shortcut that will swap the contents of two folders. f:\program files\microsoft games\halo\maps to f:\program files\microsoft games\halo\funmaps.
Halo (game) only uses the folder "maps". Depending on the online gaming site, I want to change which maps I use. Ideally I would like to swap back to the "original maps" in the "maps folder" as well.

Something like:
md juggle
copy folder1 juggle /s
del folder1 /s
copy folder2 folder1 /s
del folder2 /s
copy juggle folder2 /s
del juggle /s
rd juggleJohn W. Borelli
IT Specialist
OmniIT
borelli35

I now realize this is not what I wanted to do. Moving files (in this case over 1Gig) would take to long, plus I would have more than 2 folders to swap around.
For instance:
\MAPS <contains original maps for the Halo game
\MAPSFUN <contains moded maps (files) for an online site
\MAPSPOQ <moded maps for another site
\MAPSJJPS <moded maps for another site
and so onIf I want the \MAPSFUN loaded, the current \MAPS needs to be renamed \MAPSORIG and then the \MAPSFUN needs to be renamed to just \MAPS. Remember Halo only reads from the \MAPS folder.
Now lets say I want to load the \MAPSJJPS folder, currently the \MAPS folder is holding the contents of \MAPSFUN, so now the \MAPS folder needs to be renamed to \MAPSFUN and then the \MAPSJJPS renamed to \MAPS. See where I'm going with this? The batch file needs to be able to keep track of whats what and I need to be able to modify the batch file for lesser or more map folders.
I have several friends that could use this too and maybe their friends and so on... thanks from all of us!

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |