Run from system tray versus install service

So here lately I have been having an issue, not sure why, tried searching but couldn't find an answer, if I start channels dvr from the system tray I can watch my philo channels no issue, this is the log entry

2021/06/09 20:49:10.073491 [TVE] stream timestamps: cmt: start_at=2021-06-09T20:48:09-05:00 current_at=2021-06-09T20:48:29-05:00 end_at=2021-06-09T20:48:37-05:00
2021/06/09 20:49:10.073491 [TNR] Opened connection to TVE-Philo for ch6016 CMT
2021/06/09 20:49:26.557010 [TNR] Error during live stream for ch6016 CMT: write tcp 192.168.1.131:8089->192.168.1.186:51894: wsasend: An established connection was aborted by the software in your host machine.
2021/06/09 20:49:26.647600 [TNR] Closed connection to TVE-Philo for ch6016 CMT

but if I install the dvr as a service to start automatically on boot and try to watch the same channel I get this in the log

2021/06/09 21:08:26.192236 [ERR] Could not create backup: CreateFile Z:\DVR: The system cannot find the path specified.
2021/06/09 21:08:27.792588 [ERR] Could not start stream for TVE-Philo ch6016 CMT: TVE: CreateFile Z:\DVR\Streaming: The system cannot find the path specified.

This is driving me crazy because this is a headless windows vm, and if I have to restart the vm, or the proxmox host, I have to remote login to it at least once for the dvr software to run. and sometimes I just forget I have to do that and my shows don't record.

Any ideas?

Sound like a permission problem on your Z:\DVR. Whwn you login and run as tray you are running as an ADMIN user.... Change the service to login with your account. Or check Permissions in Z:\DVR.

Sounds like your Z drive is a mapped network drive, and isn't available to services by default.

thanks for the suggestion, while not usually acceptable i changed permissions of every file and folder in the dvr directory to 777, also changed the service to use my login user and neither fixes the problem

I had thought about that too, I know MCEBuddy cant use a mapped drive, maybe I'll try changing my path to be the network path like I have to for MCEBuddy

Ok thanks for the help guys I fixed the issue, which also solves the MCEBuddy problem.

Open an admin command prompt, type mklink /D c:\DVR \ \R720\Storage\DVR

This now links the contents of the remote DVR directory under c:\DVR so any windows service can see it