how to install rclone as service on windows

Shell
Copy nssm.exe to same directory that rclone is in. I launched NSSM, by opening an elevated command line. Type cmd in the search bar and right click and choose “run as administrator.”

cd c:\rclone (or wherever you have rclone located)
nssm install “Rclone Mount”
Fill in the info below
Still in the command prompt, type services.msc
Scroll down and choose your service and right click and start it.
If it fails to start, stop the service
Go back to command prompt and run sc.exe delete “Rclone Mount”
Enter the command from step 2 above and repeat until you complete everything with no typos and it works.
Going to post the various parts of NSSM that I’ve filled in. Originally it was failing because when I did the copy paste, for some reason it was doing one dash and one hyphen. I could paste it to command line and it would work. But to NSSM it would change it to hyphen. So I ended up just typing it out, instead of copy paste.

Application tab:
Path: C:\rclone\rclone.exe
Startup Directory: C:\rclone
Arguments: mount gdrive-crypt: s: --config “C:\rclone\rclone.conf”
Service name: Rclone Mount

Details tab:
Display name: Rclone Mount
Description: Automatically mounts the encrypted google drive using rclone.

Exit actions tab:
Delay restart by: 10000 ms (10 seconds)

If I didn’t reference it above, I didn’t change it away from defaults.
Source

Also in Shell: