You should just be able to set the filepath to \\AI964056\Recipe\BT\*.csv and it would work, assuming you have a file share established with that path. Permissions could be an issue in this case, but can be overcome based on the permissions granted when creating the file share.
The other option is to map a network drive in Windows to the computer, and this would create a Network Drive that you could reference. When you do this, it would be whatever you selected as the network drive letter (i.e. X:\). This allows you to define and save the credentials and not worry about it with the other option.
You cannot automatically access remote drives, unless an administrator of the target computer. In which case the share would be \\\\AI964056\\C$\..... Otherwise the target computer must have share names established deliberately.
For file paths in script, I would recommend either using the raw string flag r'\\AI964056\shared folder'
Or change all of your back slashes to forward slashes '//AI964056/shared folder'
Backslashes are a special character in python and are used to escape certain other characters
And if you are using backslashes I believe you then need a quadruple, similar to how you’d need a double to browse a remote PC in windows explorer - double a single, and double the double for remote path
When I left click here is the link I can copy:
Recipe In (file://AI546945/Recipe%20In)
I dont have to do anything on the first computer correct?
Also do I have to change the script based on the shared link?
Thanks.
This confirms I can see the folder from the second computer on the first computer.
I have the csv file as 123_234.csv and also added a blank test.txt file.
I created a new view with just this button and have a custom property on the page as CSVFILE.
Here is the view:
When running in Perspective’s context, the script is actually executing on the gateway. By default, the gateway runs under the LOCAL_SYSTEM account, which does not have access to any network resources. Have you changed the user the Ignition gateway runs as?
Awesome! I figured out how to change it and it worked. If My next question is if I change it does it affect anything else related to Ignition if it isn’t using the LOCAL_SYSTEM anymore?
Does the user have to login as this user in order for ignition to operate correctly?
Nope, this is (mostly) irrelevant to Ignition; it’s just up to Windows and its permissions. Basically, to run any ‘persistent’ application (Windows calls them services) you have to choose some set of permissions to run under, and Windows defaults to this fairly restrictive one for safety and security reasons.
Ignition itself doesn’t directly care about this; all of our authentication and authorization is happening in a different layer. The only things it really affects are filesystem or network permissions on the gateway machine itself.