Copy link to clipboard
Copied
I created PS script which read some data from xml which is placed on local server. Problem occcures every time i turn off/restart my computer, then i lost connection with that folder and script is not usefull until i manualy explore the mentioned folder. Is it posible to explore that folder as a part of scipt if i know full path of that xml?
@milevic wrote:
its a MAC OS
Then you can go to System Prefs > Users & Groups > Login Items and add the mounted volume.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Like the answer in Mike's like, I always used the forward slash when referencing a path on my computer or on a server. I also made sure I mapped the network drive with a drive letter. Never had an issue with it, and I had some scripts that referred to XML files on the network.
Copy link to clipboard
Copied
It is already forward slash :'-( maybe it is something with network permissions, i just want to share experience and to exclude human mistake. If someone have some more idea, its welcome
Copy link to clipboard
Copied
If Windows OS (you didn't say), map the server to a local drive letter as suggested by Chuck, ensuring that you tick "reconnect at login" when mapping the drive so that it automatically mounts each time.
Copy link to clipboard
Copied
its a MAC OS
Copy link to clipboard
Copied
A remote drive must be mounted and available to access in any app. Make sure it is available before you run your script.
Copy link to clipboard
Copied
@milevic wrote:
its a MAC OS
Then you can go to System Prefs > Users & Groups > Login Items and add the mounted volume.
Copy link to clipboard
Copied
This is a good hint