Computing.Net > Forums > Disk Operating System > cascading multiple dos commands

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

cascading multiple dos commands

Reply to Message Icon

Name: yuv
Date: March 7, 2005 at 01:36:14 Pacific
OS: win 2000
CPU/Ram: p4 / 1 GB
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: March 7, 2005 at 01:57:40 Pacific
Reply:

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


0

Response Number 2
Name: yuv
Date: March 7, 2005 at 04:25:58 Pacific
Reply:

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


0

Response Number 3
Name: Mechanix2Go
Date: March 7, 2005 at 04:46:42 Pacific
Reply:

Question remains.

What are you trying to do?

M2


0

Response Number 4
Name: yuv
Date: March 7, 2005 at 23:20:42 Pacific
Reply:

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 somefile

Cant 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


0

Response Number 5
Name: wizard-fred
Date: March 8, 2005 at 04:39:00 Pacific
Reply:

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.


0

Related Posts

See More



Response Number 6
Name: dtech10
Date: March 8, 2005 at 08:14:14 Pacific
Reply:

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.


0

Response Number 7
Name: Valerie (by Garibaldi)
Date: March 8, 2005 at 14:06:16 Pacific
Reply:

Is this what you are looking for??

http://www.computerhope.com/issues/ch000177.htm


0

Response Number 8
Name: yuv
Date: March 9, 2005 at 22:16:14 Pacific
Reply:

oh.. thanx Valerie.
That is what i wanted.

Thanx to all for their help an replies.
:-)


----
yuv


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: cascading multiple dos commands

Bringing up multiple DOS windows. www.computing.net/answers/dos/bringing-up-multiple-dos-windows/9838.html

DOS Commands www.computing.net/answers/dos/dos-commands/16961.html

dos command problem www.computing.net/answers/dos/dos-command-problem/9027.html