darbyjohnston / DJV

Professional media review software for VFX, animation, and film production
https://darbyjohnston.github.io/DJV/
BSD 3-Clause "New" or "Revised" License
695 stars 59 forks source link

Adding DJV to the command line using PATH (System variables - Win10) doesn't launch DJV #484

Open 3dcinetv opened 1 year ago

3dcinetv commented 1 year ago

Hello, I've added my path: C:\Program Files\DJV2\bin\djv.exe To the PATH variable in Windows 10 System variables. But when I launch a cmd with "djv_info" I get the: 'djv_info' is not recognized as an internal or external command, operable program or batch file - Error.

Is there anything else I should setup to make DJV launch from cmd?

charliewales commented 1 year ago

Add the path, not the executable:

C:\Program Files\DJV2\bin

Every executable under that path will be available in a cmd window

3dcinetv commented 1 year ago

Fantastic, it works. Also, when I type "djv_info" I don't get the current number version of DJV, I only get ".:" glyphs.

mslinn commented 12 months ago

Here is some documentation that should help other Windows users. I am not sure how to offer it via a pull request.

The djv installation program does not put djv.com on the PATH. To accomplish that, open a cmd console with administrator privileges by pressing Windows-R, typing cmd, then pressing Ctrl-Shift-Enter. The C:\Your Userid> prompt should appear.

Now paste in the following, exactly as shown:

setx /M PATH "%PATH%;C:\Program Files\DJV2\bin"

The modified path is not available to the existing console. Close it and open another instance with normal privileges.

You should now be able to operate djv.com from the command line. You can view the command-line help by typing:

djv -h