the_msp
Lifetime Supporting Member
Hello, slightly OT but I remember a thread here a while ago (that I've searched for and can't find) discussing a similar topic...
I am trying to open a file using Ignition's scripting
the format of the filepath is:
but the console returns:
The problem as you can see it is adding the character "x" before the fielname prefix (day of month). If I rename the file as simply "handling" it opens the file ok.
From the thread I was reading before it mentioned using other characters to get round this, if I add a ' it removes the x but also the backslash altogether;
I am trying to open a file using Ignition's scripting
the format of the filepath is:
Code:
filepath = "\\machine\c$\Logs\03_filename.log"
file = open(filepath)
but the console returns:
No such file or directory: "\\machine\c$\Logs\x03_filename.log"
The problem as you can see it is adding the character "x" before the fielname prefix (day of month). If I rename the file as simply "handling" it opens the file ok.
From the thread I was reading before it mentioned using other characters to get round this, if I add a ' it removes the x but also the backslash altogether;
Code:
filepath = "\\machine\c$\Logs\'03_filename.log"
file = open(filepath)
No such file or directory: "\\machine\c$\Logs03_filename.log"