Sublime Forum

Opening files from command prompt creates a new file

#1

I just tried to setup sublime text to open files from the windows command prompt using subl command.
I noticed that the cmd opens files from the folder C:\Users\sahil
while all my sublime text files are at C:\Users\sahil\AppData\Roaming\Sublime Text\Packages\User.
I tried to move a file to C:\Users\sahil\ and it worked. Although my sublime setup has input and output files “inputf.in” and “outputf.out” . I tried bunch of different file moving and i caved in.

What I would like to know is how to change the default folder path for opening files from cmd and how to push input and get output on the command prompt itself. Thanks

0 Likes

#2

Sounds like you just want to cd to your directory of choice. Do note that AppData\Roaming\Sublime Text\Packages\User is for Sublime Text plugins, not your scripts unrelated to Sublime Text.

0 Likes