Using two commands simultaneously in DOS

  • #1
332
1

Main Question or Discussion Point

Hi

1: Is this possible to use two or more DOS commands in the same line. When I enter the command "TREE C:\" it displays all the folders (=directories) and sub-folders present there in the drive C. But I don't want to see the sub-folders displayed in the tree. I don't know the command for hiding the sub-folders. I hope there is one. That would mean I need two commands in the same line, i.e., [Command to hide the sub-folders] [TREE] [C:\].

Could you please help me with it?

2: Suppose I enter the command "TREE C:\ |MORE". I would get a limited list of the folders and sub-folders and then I would have to press/tap ENTER key to see the remaining list. Suppose, in the midway I want to abort that TREE command, how could I do it? Do I have to the list to its very end to enter a new command? Please have a look on the video:
 
Last edited by a moderator:

Answers and Replies

  • #2
Borek
Mentor
28,326
2,713
Why TREE and not just DIR? Try if Ctrl-C doesn't stop the listing.

I have not used DOS prompt in ages, so I can be wrong.
 

Related Threads for: Using two commands simultaneously in DOS

  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
14
Views
841
  • Last Post
Replies
12
Views
3K
  • Last Post
Replies
3
Views
4K
Replies
6
Views
3K
Replies
7
Views
4K
Replies
5
Views
12K
Top