Skip to main content
Participant
July 21, 2023
Open for Voting

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

<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.

Translate
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.



Translate