1

This is my first attempt at automating some of my development environment setup. I have the following powershell script:

& "C:\MAMP\MAMP.exe"
& "C:\Program Files\Microsoft VS Code\Code.exe"

I run it and it works fine, but when I close the powershell window it closes my VS Code window as well. MAMP stays open.

I'm sure this is a simple fix. Thanks!

1
  • Weird. I just tried running VS Code in that way and when I closed the PowerShell window, it stayed open. Commented Oct 21, 2017 at 21:24

1 Answer 1

1

Have you tried with Start-Process?

Start-Process "C:\Program Files\Microsoft VS Code\Code.exe"

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.