Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Will anybody plz tell me how to cascade multiple DOS commands..from dos prompt?
e.g. If i want to run 'CD..' and 'CD' both commands at once from command prompt.
Is there something like this :
c:\currentdir>cd.. cd c:\nextdir----
yuv

Hi,
If you're using w2000, it depends on which command interpreter.
Either way it's not a DOS issue. It would go best in 'Programming' or 'w2000' forum.
If you really intend to use DOS, please clarify.
Changing frome one directory to another, then another, with 'cascaded' commands would happen so fast you'd never see it.
What are you trying to do?
M2

actually when sometimes we operate with DOS ... this hurdle comes in mind.
i would have liked to work with cascading commands.It is fast and time saving when we r on dos prompt.But i dont know if we can do such cascading or not.----
yuv

ohh..! nothing as special for anyproject or like that otherwise i could have prefferd .bat / .cmd files for multiple dos commands execution.
what i say that when we r just on dos prompt and doing this an that .... (e.g. copy some file and delete some file) ... so normally i do
c:\copy frm to
c:\del somefileCant i do both/multiple operations together on dos command prompt...?? just cascading commands in single line on prompt....
if its possible how to do that..??something like this if possible -
c:\copy frm to del c:\some file
----
yuv

yuv - are you trying to do command stacking? Enter commands in order so that the second and future commands are waiting their turn to execute in order while the first command is working.
I don't think you can do it in original DOS as the command interpeter is not capable of parsing the multiple command strings. *nix type systems have the ability of putting the commands in a background queue and piping input and output to different processes. Under DOS the only thing is a batch file. Sometimes you can type a command and while it executes type the next. This assumes the first command does not use the keyboard buffer.

Hi Yuv
Do you mean something like this at the dos prompt.
exec copy *.* c:\Dir + cls + del a:\*.txt
to exececute these commands one after the other to execute them all at the same time.
ie multitasking sort of thing.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |