Access to the path was denied

I did this previously and it really works, however, we need to save it on the network. Would there be any other functionality to solve this?