Hey all,

I want to write an application that I can run from the console where it loads settings from a config file. I also want to be able to double click on the executable and obtain a GUI where I can specify settings that will be stored in the config file. After I'm finished in the GUI i'd like to spawn a process and exit the GUI.

I did something similiar to this in a Java programming class I took 6 years ago. But having it been 6 years ago and never finding it practical to have a program function in this way I have forgotten how to do it.

If someone could shed some light on the problem or offer a solution it would be apprechiated.

Thanks

I forgot to mention I'd like to do this with a single file.

What have you tried so far? Do you have any specific questions or problems? Please post them.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.