file list to zone startup?
I want to start every single zone as a static zone but I'm not really into manually entering "zone" and "<mapname>" into the zone startup list.
I can get text file with all the map names with dir *.map /B > maplist.exe but I can't think of a simple way to get from there to inserting the names into the startup table. Any ideas? |
I think you could do this with a subquery to the zones table (to get the list of zone names), but I'm not sure what it would be, specifically, off the top of my head.
|
Try pasting them into excel, or saving them into a .txt file and import the file into excel using a period as the delimiter to strip off the file extension into another row. Then, just delete the rows you don't want and make a row of all zone. Should be easy enough if you have excel.
|
I ended up making a perl script that creates an sql file.
first I do a "dir maps\*.map > filelist" to get the .map names, then run the perl script which takes the names, drops the .map extention, and stuffs them into an insert statment. Code:
#! /usr/bin/perl |
All times are GMT -4. The time now is 11:56 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.