jacobwgillespie / plex-sync

:clapper: Command line utility for synchronizing Plex Media Server watched / seen status between multiple servers
https://www.npmjs.com/package/plex-sync
Other
305 stars 37 forks source link

Windows 10 Dry_Run is not a recognized command #53

Open SgtBatten opened 7 years ago

SgtBatten commented 7 years ago

I am trying to use this tool for the first time and wish to do a dry run to test it out.

I installed nodejs 6.x and it included adding npm to the my path envronment.

I then installed plex-sync using npm in the way described in your readme but had to remove the '$' at the beginning as it was not recognised.

Now i am tying to do my first dry run using: DRY_RUN=1 plex-sync http://1234567890.ams.plex.services:80/2 192.168.1.8/2

but i get the error:

'DRY_RUN' is not recognized as an internal or external command, operable program or batch file.

Sorry i know its going to be a simple solve but I have not used programs like this before

ankitmehtame commented 7 years ago

You can set environment variable first and then execute rest of the command. This should do it for you.

set DRY_RUN=1
plex-sync http://1234567890.ams.plex.services:80/2 192.168.1.8/2