Why not simple copying the config.sys file at every start and then as the
user wants them back set that back.
I never did that and I am not aware what this does mean for the security
But I assume that it should not be a big job and maybe even possible with
the File class.