English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
1

using CMD how am i able to open up another file? e.g My Computer

2007-06-17 03:05:31 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

I'm not really sure what you're asking. If, for example, you wanted to open a text file called example.txt sitting in the root of your hard drive you could:
1) Click Start -> Run
2) Type CMD and click OK
3) Type cd c:\
4) Type NOTEPAD.EXE example.txt

That will launch the file with notepad. If you wanted to launch the My Computer window from the command prompt, you could do:
EXPLORER.EXE /select,C:\

2007-06-17 08:14:56 · answer #1 · answered by mblaine 5 · 0 0

i take it CMD - you are referring to the Command Line in windows?
if so then you do not "open a file" with CMD. You open a file with some editor program , say Notepad.
If you want to see a contents of a file with CMD there is a command "type"
To see all Command line commands you can open CMD window and type "help"...

Back to the original question - you can run editor from CMD and pass a file name to the editor. This will open the editor with a file you passed as a parameter
eg - notepad myFile.txt

In any case "My Computer" is a shortcut stored as file in your Desktop directory. So you can "open" a shortcut file and see what's inside, but you can not open a "window" to which "My Computer" is linked.

2007-06-17 10:17:39 · answer #2 · answered by Tigor 1 · 1 0

CMD only provides you with a DOS screen.

At the command prompt you then have to type dir
to get a listing of files.

2007-06-17 10:10:14 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers