Skip to main content
May 6, 2009
Answered

can call a batch script whit JS script?

  • May 6, 2009
  • 2 replies
  • 1168 views

Hi! i'm looking for a method to call a batch script from JS script for indesign CS2.

It's possible?

Thanks

This topic has been closed for replies.
Correct answer

Hi,

If you want to call .bat file then, use this

File('D:\\Test.bat').execute();

regards,

sudar

2 replies

Participant
May 7, 2009

What kind of batch script are you referring to? Is it for example a .bat file in MS Windows environment, or perhaps just another script file, which can be run from within the InDesign environment?

May 7, 2009
I mean a .bat that you can call from a script from InDesign
Thanks  for you response Sudar,Andreas.
Correct answer
May 7, 2009

Hi,

If you want to call .bat file then, use this

File('D:\\Test.bat').execute();

regards,

sudar

May 7, 2009

Hi,

You have to pass one by one using doscript.

Regards,

sudar.