use popen and close file handles
batch file to copy guisettings