1.

Solve : how to open files on cmd?

Answer»

I am a beginner and was wondering how i can open jpeg files or avi files on cmd. I would also like to know how to open folders too... What do you mean by "open" them? Make them appear in a viewer or video player? And when you say "open" a folder, do you mean open it in Windows Explorer?

To "open" a file in its default program, type its file name at the prompt and press ENTER.

To open a folder in Windows Explorer type

Start "" "c:\path\to\folder" (replace with the right path)

To open the current directory type

Start "" "%cd%"






S.T. - how come my moggy got into your image Quote from: Dusty on February 08, 2011, 01:28:39 PM

S.T. - how come my moggy got into your image

He must have been on vacation in Spain, at the Jardín Botánico in Valencia, visiting the famous colony of 50+ CATS that live there, fed by the staff and supported by donations from local people and visitors who "adopt" a cat.

Perfect! thanks salmon trout! can i use the "Start "" "c:\path\to\folder"" in a batch file to open images using windows explorer?Quote from: maymon123 on February 09, 2011, 10:02:04 AM
can i use the "Start "" "c:\path\to\folder"" in a batch file to open images using windows explorer?

Open images in Windows Explorer? What do you mean?




sorry, windows "picture and fax viewer". I would like a batch file to open a picture using that program...Quote from: maymon123 on February 09, 2011, 10:28:41 AM
sorry, windows "picture and fax viewer". I would like a batch file to open a picture using that program...

Is it the default picture viewing program?
yes
Quote from: maymon123 on February 09, 2011, 10:35:25 AM
yes

Did you do what I said above?
UMM..... i tried... but how do i NAVIGATE through folders in cmd.... i am in the c drive, so "C:\>" SHOWS up, how do i open a folder on the c drive (Documents and settings)? I want it to be "C:\documents and settings".Quote from: maymon123 on February 09, 2011, 10:49:16 AM
umm..... i tried... but how do i navigate through folders in cmd.... i am in the c drive, so "C:\>" shows up, how do i open a folder on the c drive (Documents and settings)? I want it to be "C:\documents and settings".

C:\>cd "Documents and Settings" [hit Enter]

Why do you want to do this? It seems like a lot of trouble for you.



Oohh... thats it.... sorry, i love command prompt and i haven't used my computer for a while, due to school... so i forgot everything i knew... sorry.Thanx for all the help!


Discussion

No Comment Found