Computing.Net > Forums > Programming > juggling folders

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

juggling folders

Reply to Message Icon

Name: Bruce J
Date: April 5, 2009 at 05:58:22 Pacific
OS: Windows Vista
Subcategory: Batch
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: borelli35
Date: April 5, 2009 at 14:38:05 Pacific
Reply:

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 juggle

John W. Borelli
IT Specialist
OmniIT
borelli35


0

Response Number 2
Name: Bruce J
Date: April 8, 2009 at 16:43:13 Pacific
Reply:

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 on

If 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!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: juggling folders

.vbs script to rename folders www.computing.net/answers/programming/vbs-script-to-rename-folders/13102.html

Logoff script erase folders www.computing.net/answers/programming/logoff-script-erase-folders/13987.html

Opening Folders with C++ www.computing.net/answers/programming/opening-folders-with-c/828.html