1.

Solve : Ending a bat file and staying in the cmd?

Answer»

I am in a basic DOS CLASS and need to write a BAT file. The problem is that all of them or the type that you WOULD WANT to run by double clicking in Windows and keep open afterwords. As I'm sure you know when you double click a bat it closes when it is done. Can I change this and if so how? Just write cmd at the end of the batchfile.
(This OPENS a new cmd, but the window stays open.)

for example:

@echo off
dir
cmd

:eof

hope this helps
uli



Discussion

No Comment Found