0

I am building a program that outputs a batch file. In this batch file there are some links to JavaScript files, which are then supposed to run within photoshop.

Most of it works, but I just want the next JavaScript to run when the previous one is finished! Is this possible?

double-beep
  • 5,031
  • 17
  • 33
  • 41

1 Answers1

2

Yes, this is certainly possible using start with the /wait flag, telling the system to wait to finish a command before processing the next command. Run each file with:

start "" /wait node something.js [arguments]

It is suggested for you, to read the output of start /? carefully in cmd.exe.

Gerhard
  • 22,678
  • 7
  • 27
  • 43
double-beep
  • 5,031
  • 17
  • 33
  • 41