Server Help

Misc User Apps - Simple CFG->SET and SET->CFG

L.C. - Sun Jun 26, 2005 8:55 pm
Post subject: Simple CFG->SET and SET->CFG
Is there any program that is simple enough to be able to convert CFG to SET, and SET to CFG?

I've tried FACTS, and all I can do is Check CFG files with it. If I try to convert it'll give me this error message:

..then crash.
CypherJF - Sun Jun 26, 2005 11:55 pm
Post subject:
need to download it offline and install it in your X:\Windows\System32

If you're on Win98 you may need to do:

start->run->"regsvr32 X:\Windows\System32\MXFlxGrd.ocx"
L.C. - Thu Jun 30, 2005 4:56 pm
Post subject:
Sorry for late reply.

Downloading MSFLXGRD.OCX did not fix the problem, nor did using regsvr32 for WindowsXP Pro. I had to download a library pack which included it and some other things that I might aswell have installed - this fixed it. Thanks! =)
Grelminar - Fri Jul 01, 2005 2:15 am
Post subject:
This little python script converts .set to .cfg:
Code: Show/Hide
#!/usr/bin/env python
import sys
data = {}
for l in sys.stdin.readlines():
    f = l.strip().split(':', 5)
    while len(f) < 6:
        f.append('')
    sec, key, val, min, max, desc = f
    data.setdefault(sec, {})[key] = val
for sec, vals in data.items():
    print '[%s]' % sec
    for key, val in vals.items():
        print '%s=%s' % (key, val)
    print

.cfg to .set is a little harder, because you need to use template.sss as a reference.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group