Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Madhvi Maheshwari
Madhvi Maheshwari
7,788 Points

How to launch a Sublime text 2 in command line in windows 8

I have downloaded sublime text 2 windows version but still in cmd it saying is not recognized as an internal or external command.

please anybody can help me on this matter..

3 Answers

Hey, I had some issues with this aswell. You can type:

open path/file.txt -a "Sublime Text"

This worked for me at least. I use Sublime Text 3, but it should be the same thing.

EDIT: Made a boo boo, the open command is on OSX. In windows you would use either

start "Sublime Text" path/file.file

or

edit "Sublime Text" path/file.file

For more information see: Superuser

Madhvi Maheshwari
Madhvi Maheshwari
7,788 Points

Its saying open is not recognized as an internal or external command

Can you try the command without the open?

So:

path/file.txt -a "Sublime Text"
Madhvi Maheshwari
Madhvi Maheshwari
7,788 Points

I have used this path path/file.txt -a "Sublime Text" but its not opening the new window and not even giving any error

I made a mistake, please see my edit.

Madhvi Maheshwari
Madhvi Maheshwari
7,788 Points

i have tried edit but it is also not working

I'm sorry, but then I can't help you. Unless you want to open Sublime Text and press open file.

Madhvi Maheshwari
Madhvi Maheshwari
7,788 Points

I have opened the sublime Text 2 but in video its saying check .ssh by typing command ls -la but this command is not working in windows..can u help me in that as well..sorry to ask so many question but i dont understand why teacher as not explained in windows as well..