#1 02 Mar 2018 23:38

Mr.Berzerk
New Member
Registered: 02 Mar 2018
Posts: 1

Trying to execute every jsx script in folder using batch job. Can I do

I want to execute every scipt, and I want it to wait for one to finish before moving on. Is this possible with windows batch?


for %%G in ("C:\Users\theUser\Documents\Adobe Scripts\t\*.jsx") DO "C:\Program Files (x86)\Adobe\Adobe ExtendScript Toolkit CC\ExtendScript Toolkit.exe" -run "%%G"
pause



It is running the command, but not actually executing the exe.

Offline

#2 04 Mar 2018 04:14

Shadow Thief
Member
Registered: 12 Jul 2012
Posts: 169

Re: Trying to execute every jsx script in folder using batch job. Can I do

If it's not executing the exe, how do you know it's running the command?

Does the command work by itself without the for loop on the command line?

You can always try using start.

for %%G in ("C:\Users\theUser\Documents\Adobe Scripts\t\*.jsx") DO start "" /wait "C:\Program Files (x86)\Adobe\Adobe ExtendScript Toolkit CC\ExtendScript Toolkit.exe" -run "%%G"

Last edited by Shadow Thief (04 Mar 2018 04:15)

Offline

Board footer

Powered by FluxBB