0

I'm using Power Automate to open a specific file with VS Code. I'm doing this by running command prompt with the following command line arguments:

cd /d <file's folder directory>&&code <file name>&&exit /b"

This opens the file but an empty command prompt stays open, is there a way I could fix this? If not, is there an alternative way to open a specific file with VS Code using Power Automate?

Skin
  • 9,085
  • 2
  • 13
  • 29
  • Bring the command prompt into view and type exit or, kill the process. Do the same in PAD as I’d you were clicking the buttons yourself. – Skin Oct 18 '22 at 21:02
  • how are you calling the command? PAD does give you the processID when calling a process, so you should be able to terminate it that way. OR there is a open and close CMD function. – CobyC Dec 06 '22 at 10:06

0 Answers0