Is Windows 'clip' blocked in Adobe ExtendS

2019-06-08 20:36发布

问题:

In Adobe ExtendScript (based on java script) you can trigger system commands as if you are in a Windows console with 'system.callSystem()'

This works:

system.callSystem("notepad c:/test.txt")

Notepad opens with the content of the file.

But these examples that try to paste to the clipboard don't work:"

system.callSystem('clip < c:/test.txt')
system.callSystem('dir | clip')

I've tried numerous variations with 'clip' and none of them work.

Is 'clip' blocked from working with ExtendScript, or am I doing something wrong?