Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: What is "more?" when typing '(' in cmd?

29 Jul 2013   #11
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by Anak View Post
Kari, that is a beautiful example on how the More? cmd is used.

Can I assume that if I see the "?" mark after other commands, the interpreter is asking for more input?
No .

But if you see More ?, it means the command is incomplete, Windows does not understand it.

I notice that I did explain this quite poorly, so here's a bit more information.

You can give several commands in one command line sentence as far as the commands are separated with an ampersand (&) and put within the parenthesis. This is useful in batch files, especially when doing FOR ... DO loops.

Following command sentence would first create a folder called D:\TARGET, then copy all PDF files starting with the letter B from folder E:\TEST to D:\TARGET and finally show message "Selected files in E:\TEST copied to D:\TARGET":

(MD D:\TARGET & COPY E:\TEST\B*.pdf D:\TARGET & ECHO Selected files in E:\TEST copied to D:\TARGET)

Notice the ampersand (&) signs between the commands, command sentence within the parenthesis.

The output in command prompt window would look like this:
What is "more?" when typing '(' in cmd?-2013-07-29_160004.png
Kari




My System SpecsSystem Spec
.
29 Jul 2013   #12
Anak

Microsoft Community Contributor Award Recipient

Win 7 Home Premium 64bit Ver 6.1.7600 Build 7601 - SP1
 
 

Thanks for More? information on the subject.
Unfortunately I've let my command skills wither to the point that I would have to burn some serious midnight oil to get back into it, but I've always enjoyed working with the command prompt.

I saved vanderwoude's link.
My System SpecsSystem Spec
29 Jul 2013   #13
Kari

Microsoft Community Contributor Award Recipient

 

No probs, Anak .

The command line and batching / scripting options in Windows cover a lot more, can do a lot more than an average user or even quite geeky user usually knows, not to mention how complex things you can do with Windows PowerShell.

With modern operating systems it is of course possible to use the PC almost solely by pointing and clicking but IMO it is worth for every advanced Windows user to learn command line and PowerShell.

Just my 2 Euro cents...

Kari
My System SpecsSystem Spec
.

30 Jul 2013   #14
M4dn3ss

Windows 7 Professional x64
 
 

So basically you can run multiple commands like that... interesting
My System SpecsSystem Spec
30 Jul 2013   #15
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by M4dn3ss View Post
So basically you can run multiple commands like that... interesting
Yes. Using the opening parenthesis alone you can also input multiple commands into a buffer, to be executed all one after another only when the closing parenthesis is given.

An example. Try this, input the characters and commands in command prompt as told here:
  • Type ( and hit Enter
    • This starts a multiple command sentence and asks more information
  • Type dir C: and hit Enter
    • No closing parenthesis ergo system asks more
  • Type Echo This was an example of multiple commands in one command sentence and hit Enter
    • Again, no closing parenthesis, system asks more
  • Type ) and hit Enter
    • Command sentence finished with closing parenthesis, being ready to be executed. As instructed, the system shows folder listing and thereafter the text "This was an example of multiple commands in one command sentence"
The above example in command prompt window would look like this:
What is "more?" when typing '(' in cmd?-2013-07-30_120116.png
Kari


My System SpecsSystem Spec
Reply

 What is "more?" when typing '(' in cmd?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
"access denied" when using "assoc" and "ftype" from cmdline?
I tried to associate the file extension .txt to a new editor program with the well known cmdline programs ASSOC and FTYPE. No, assigning them through WinExplorer menu does not work. But this is another problem which should not discussed here. When I type now one of the following...
General Discussion
Kyboard deos not respond to the keys: "e", "d", "c" and "3"
Example sentence: vrytim I prss ths kys, nothing happns. Now I'm writing with my on-sreen keyboard. I'm clueless when it comes to computer stuff. How do I fix this? Is this a software problem, or a hardware problem?Help is much appreciated!
Hardware & Devices
Changing the "minimize" "maximize" and "close" buttons of a theme
Ok so I'm using a custom visual style made by another user however I don't really like the buttons used that I mentioned above. The creator states it is acceptable to change the theme to however you like as long as you don't redistribute it anywhere. Ok so I opened up the .msstyles file (using...
Customization
BSOD every few hours: mostly "STOP: 0x00000F4", "c00021a" & "c0000135"
Hi everyone! Yesterday my HP laptop (Windows 7) started getting BSOD with various types of errors (mostly "STOP: 0x00000F4", "STOP: 0x0000007A", "c00021a" and one "missing %hs, c0000135"). Most of the time it restarts without any issues and works fine right after the BSOD and then an hour or two...
BSOD Help and Support
Need to add "TASKBARS" (MSese for "Launchpads", "Docks" NOT "Toolbars"
My office just upgraded, and I can no longer use Windows XP. On this system, I was able to add a separate taskbar to facilitate quick access to commonly-browsed folder locations on our vast network, and another one expedited the launching of useful programs and lists. Each task on each taskbar...
General Discussion
nnnnnnnnnnnnnnnnnnn and "Mass Murdering Backspace" (Typing Glitches)
The issue is infuriating as either the mouse or keyboard randomly either continuously and automatically types the same character with no way to stop it, or, (and this is worse) will continuously and automatically delete large amounts of my typing while I pound keys trying to make it stop its...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 23:06.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App