Skip to main content
Shulipa Bernad
Inspiring
January 29, 2022
Answered

Run a .jsx file through a .bat file

  • January 29, 2022
  • 1 reply
  • 1865 views

Hey guys!
How do I run a.jsx file through a.bat file?
Thanks!

This topic has been closed for replies.
Correct answer Kukurykus

 

start "" "C:\Program Files\Adobe\Adobe Photoshop 2022\Photoshop.exe" "D:\a.jsx"

 

1 reply

Kukurykus
KukurykusCorrect answer
Legend
January 29, 2022

 

start "" "C:\Program Files\Adobe\Adobe Photoshop 2022\Photoshop.exe" "D:\a.jsx"

 

Shulipa Bernad
Inspiring
January 29, 2022

start "" "C:\Program Files\Adobe\Adobe Photoshop 2021\Photoshop.exe" "~/Desktop/script.jsx"

Hi @Kukurykus , it's not correct but it didn't work for me

 

Kukurykus
Legend
January 29, 2022

My code is correct - did you check if that works when the file is on d (or other drive)?

 

You didn't ask of specific localization. For desktop replace 'User' to name of your User Name: 

 

C:\Users\User\Desktop

 

by the way, the logic of "it's not correct but it didn't work for me" sentence is not correct.

Either say: 'it's not correct but it did work for me" or: 'it's correct but it didn't work for me'.