• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

CFS2 command line switches and environment variables

SW

Charter Member
Hi all,

this has probably been asked before, apologies if it has been dealt with previously and I just haven't been able to find it.

1) Does anyone know of a list of all the CSF2 command line switches? The only ones I know of are:

cfs2.exe /BUILDER:
cs2.exe /CFG:

I know that /CFG: can be followed with the name of a .cfg file, presumably then the /BUILDER: can be followed with some file name?

2) Are there any known environment variables that can be set for CFS2?

Thanks in advance,

Steve
 
Hi Steve,
No need to apologise at all!

I've never seen this question and it's a good one, I'd be interested if there are any others?

Be good if there were some useful unknowns or 'easter eggs' in there!

Cheers

Shessi
 
/BUILDER[:filename]
/CFG[:filename]
/ShowLogo
/STN:filename
/MIS:filename
/ZoneLaunch

You need be careful with the /CFG switch. If you use just /CFG, i.e. with no file name, then your existing config file will be deleted. There's also a /DEBUG switch, but it's only related to the ZoneLaunch switch in CFS2.

Hi all,

this has probably been asked before, apologies if it has been dealt with previously and I just haven't been able to find it.

1) Does anyone know of a list of all the CSF2 command line switches? The only ones I know of are:

cfs2.exe /BUILDER:
cs2.exe /CFG:

I know that /CFG: can be followed with the name of a .cfg file, presumably then the /BUILDER: can be followed with some file name?

2) Are there any known environment variables that can be set for CFS2?

Thanks in advance,

Steve
 
Interesting, I did a brand new install of CFS2 and don't have a config file at all. Could I have messed this up like what cfsops is suggesting in an earlier install and then didn't get it all deleted prior to my new install? Any ideas?

msfossey
 
The cfs2.cfg file is created the first time you run/shutdown the app. If you do a clean install, no, there won't be one there. Once you run and shut down, it gets saved, (to the same directory that holds the cfs2.exe binary).
 
On my clean install I have been flying several missions and been playing the campaign for several weeks now, however no cfs2.cfg file appears in the directory. Not sure why. Any help would be appreciated.

msfossey
 
/BUILDER[:filename]
/CFG[:filename]
/ShowLogo
/STN:filename
/MIS:filename
/ZoneLaunch

You need be careful with the /CFG switch. If you use just /CFG, i.e. with no file name, then your existing config file will be deleted. There's also a /DEBUG switch, but it's only related to the ZoneLaunch switch in CFS2.

Thanks cfsops. How did you find these out? I've tried things like "cfs2.exe /?" with no joy. Did you find the switches documented somewhere, or was it trial and error?

cheers,

Steve
 
I had found them many years ago while working on some of my free stuff. As far as I'm aware, they were not documented, (though some may have been).
 
Back
Top