Environment: Windows 7, Phantomjs version 1.8.0.
I try to run any .js file from 'examples' folder, installed Phantom.js before, added path to the PATH variable, checked version like
phantomjs --version
and it works.
But when I try to run
phantomjs examples/version.js
then get 'Can't open version.js'
I've checked file security settings and run cmd like administrator, but still the same result.
I'll appreciate any help to solve this issue. Thanks in advance.
ls examples/version.js?cdto the dir that contains the examples dir. The path is relative to the current path in Command, not to the phantomjs dir.