2

Context:

I have a .BAT file with the following code:

cd C:\folder1\folder2
subl .

When executing that .BAT file in dir "C:/folder3", I want to stay at the navigated directory "C:\folder1\folder2" from my .BAT file. Now i'm just returning to my previous directory where i've executed that bat file, which is C:\folder3.

This because i want to execute some manual commands in that directory "C:\folder1\folder2"

  • Is this the full code of the batch file? if not, are you using setlocal? – MC ND Oct 13 '16 at 10:56
  • No i'm not using setlocal (don't have any experience with bat files..) – JavascriptDeveloper Oct 13 '16 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.