Dir command

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I had occasion to use this old command today. It would not work directly
from the Run: dialog box, but if I placed the command in a batch file and
ran the batch file from Run, it worked correctly.

Does anyone know why?

Sprinks
 
When you run the dir command from Start Run
The command prompt window opens
It runs the dir command
It closes the command prompt window

It all happens so fast you can't really see it.

Open a command prompt window and then from the command prompt run the dir
command.
 
No it doesn't. It is an internal command to command and cmd and so only those know what it is.
 
Sprinks said:
I had occasion to use this old command today. It would not work directly
from the Run: dialog box, but if I placed the command in a batch file and
ran the batch file from Run, it worked correctly.

Does anyone know why?

Sprinks

You need to run that command from the command line. Open up a command prompt before running it.

Start -> Run -> cmd [Enter]
dir [Enter]

--
 
Sprinks said:
I had occasion to use this old command today. It would not work directly
from the Run: dialog box, but if I placed the command in a batch file and
ran the batch file from Run, it worked correctly.

Does anyone know why?

Sprinks
Yeah, you need to open a command prompt window first, THEN type dir ;)

If console programs do not have e.x. Console.ReadLine(); at the end of
their program, they will automatically close.
Most console programs do NOT have ReadLine() at the end ;) Only I do
that when I am debugging them in Visual Studio ;)
 
Sprinks said:
I had occasion to use this old command today. It would not work directly
from the Run: dialog box, but if I placed the command in a batch file and
ran the batch file from Run, it worked correctly.

Does anyone know why?

Sprinks


"Dir" is a Command Line application. Why would you expect it to work
properly from the GUI? It's behaving as designed.


--

Bruce Chambers

Help us help you:



They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -Benjamin Franklin
 
Bruce said:
"Dir" is a Command Line application. Why would you expect it to
work properly from the GUI? It's behaving as designed.

....perhaps only an user who has seen and used mainly the GUI
would have such expectations. There are more of them each day
due to the predominance of Windows and the Mac OS's along with
a smattering of X-Windows.
 
Thanks Murdoc. I'd been under the mistaken impression that Start, Run was
delivering the user to a "virtual" DOS command line. Thanks.

Murdoc said:
Sprinks said:
I had occasion to use this old command today. It would not work directly
from the Run: dialog box, but if I placed the command in a batch file and
ran the batch file from Run, it worked correctly.

Does anyone know why?

Sprinks

You need to run that command from the command line. Open up a command prompt before running it.

Start -> Run -> cmd [Enter]
dir [Enter]
 
Ghostrider said:
...perhaps only an user who has seen and used mainly the GUI
would have such expectations. There are more of them each day
due to the predominance of Windows and the Mac OS's along with
a smattering of X-Windows.


But then how would such a user (one whose only ever used the GUI) even
know about the Command Line utilities?


--

Bruce Chambers

Help us help you:



They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -Benjamin Franklin
 
Back
Top