answersLogoWhite

0


Best Answer

At the command prompt, whitespace is used as a delimiter. To treat whitespace as being part of a value, you must enclose the whole value in quotes.

myprog Albert Einstein

myprog "albert einstein"

In the above examples, the first treats albert and einstein as being two separate values, whereas the second treats "albert einstein" as being one value (the surrounding quotes are part of the value, but these can be removed programmatically if required).

User Avatar

Wiki User

6y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

Presuming that you are talking about some version of Windows, most often you can enclose the name in quotation marks and have that do the trick for you.

For example, if you want to change the current directory to John Smith's directory structure, you could type:


cd "\users\john smith"


and it should take you right into it.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you select a user-name in command prompt I have a two part user-name and can't select it.?
Write your answer...
Submit
Still have questions?
magnify glass
imp