Skip to main content
Participant
July 21, 2023

Can't run script with es.processFile if absolute path to script contains spaces

  • July 21, 2023
  • 2 replies
  • 145 views
<fullPathToAMEbinary> --console es.processFile "C:\Hello World\test.js" // doens't work
<fullPathToAMEbinary> --console es.processFile "C:\HelloWorld\test.js" // works

Is there anyway to escape the whitespace in a path?

2 replies

Participant
July 27, 2023

Thank you that solved the issue.

Adobe Employee
July 21, 2023

Windows command line splits files with spaces into multiple separate parameters when passing it on. Try using double quotes, i.e.

<fullPathToAMEbinary> --console es.processFile ""C:\Hello World\test.js""

This works for me in Windows 11.