   .bat or .cmd
  hey, can someone help me please, everytime i try to use msdos, it closes almost instantly, evan if i run .ipconfig, im trying to programme .bat and its useless like this, please someone have an answer?   
  If I'm understanding you correctly, then at the end of your batch file add a "pause" command.Or, more properly, run the batch from from a command prompt rather than double clicking on it in windows.   ;  Batch programs are intended to be run from the command line, or other batch programs. If you want your batch file to wait for input after its done, you could use the "pause" command.   ;  it doesnt just happen when i create it, like i said if i type .ipconfig, in the CMD it just split second and shuts cant read it.   ;  You're not actually opening the command window.  You're executing a command; so the shell that opens shares a lifetime with the command being executed.Instead, open the actual command window Start -> type "cmd" where you're currently typing ipconfig.  Or to get it into your head that the command prompt is a separate application: Start -> Programs -> Accessories -> Command Prompt.  Then type whatever you want, it won't close..bat files are meant to be run from the command prompt: you don't double click it, you open the command prompt, navigate to the correct directory using the "cd" command, type the name of the .bat file.  If you double click it, it will still run but the shell will again simply share a lifetime with the .bat file.-me   