Computer Hope
Microsoft => Microsoft DOS => Topic started by: tyler77 on August 21, 2009, 03:33:19 AM
-
Hi everybody!
how to exit after a shell command like:
dir c:\ /s
What?
esc? or something else?
I can use only shell command. I can't close the cmd window ;)
-
I suppose this is part of a batch file, just type exit at the end will close it.
-
Once it finishes completing the directory for C:\, it will close.
-
Hi everybody!
how to exit after a shell command like:
dir c:\ /s
What?
esc? or something else?
I can use only shell command. I can't close the cmd window ;)
To stop it, while it is still running?
Try Ctrl-C
-
or more directly, Ctrl+Break. That's what I always use.
I always thought it was the same as Ctrl-C, then I found that sometimes Ctrl-C didn't work, and Ctrl-Break did... although that was mostly with programs, not DOS commands.
-
CTL+C is the same as CTL+BRK
you simply have to type break on
before using CTL+C
-
forgot to add
break is always on in windows nt command prompts
[Moderated Message: Instead of posting twice in a row, please use the EDIT button next time. Thanks]
-
Control-C only activates when the program writes to or reads from the screen. even with Break ON it only extends to disk reads/writes. Control+Break interrupts it regardless.
-
Control-C only activates when the program writes to or reads from the screen. even with Break ON it only extends to disk reads/writes. Control+Break interrupts it regardless.
not sure about that
because if i write a C program that does a while(1){}
loop neather CTL+BRK nor CTL+C stops it
-
To stop it, while it is still running?
Try Ctrl-C
Isnt that a linux code or something
-
Isnt that a linux code or something
huh?
linux is baised on unix
dos is baised on unix
-
huh?
linux is baised on unix
dos is baised on unix
DOS is not based on UNIX.
Read This (http://inventors.about.com/library/weekly/aa033099.htm).
-
but it got alot of idea from unix
such as pipes
-
but it got alot of idea from unix
such as pipes
I think you need to put the pipe down.
-
dos was made before linux, gates asked for an os to be made an came up with this. I ment isnt that something you could use in the bash shell.
-
DOS is based of CP/M...
UNIX is proprietary, Linux is under the GPL. I believe they are separate products. (UNIX, if I am correct, is still owned by AT&T)
To answer your question squall I'm not sure if you can use Control C, but I do know control-break is fairly universal. (I think you can use ctrl-C as well).
-
...
To answer your question squall I'm not sure if you can use Control C, but I do know control-break is fairly universal. (I think you can use ctrl-C as well).
The simple thing for him to do, is .... simply try it. :)
dir /s and while all that disply is flying up the screen, hit Ctrl-C.
Then, he'll know.
-
well... I meant, wether he could use it in the bash shell. But he could try that too (probably some form of ls)
-
not that I recall its been a while
-
well... I meant, wether he could use it in the bash shell. But he could try that too (probably some form of ls)
http://www.linuxforums.org/forum/linux-programming-scripting/119516-solved-difference-bw-ctrl-c-amp-ctrl-d-amp-ctrl-z.html
-
I have it wrote down some were, that looks like something that may help later. ;)