Asked — Edited
Resolved Resolved by Rich!

Is There An Sequence To Escape / When Using In A String For Path Vars?

example

This is ok $BasePath = "G:"

but this gives error

$BasePath = "G:/"

it is because of the / , im asuming is being used as an escape char in Ez-Script.

is there a way to escape this?


ARC Pro

Upgrade to ARC Pro

Subscribe to ARC Pro, and your robot will become a canvas for your imagination, limited only by your creativity.

#9  

This

$BasePath = "G:\"

Also resulted in error.

United Kingdom
#11  

No problem. I guess the outcome is that this is a limitation in EZ-Script and an alternative method is needed.

P.S. Thanks for the credit, you're number 250:D

#12  

maybe it is messing up because you misspelled weather in wather.rss

#14  

ya the wather weather was not relevant. The out come was just the EZ Script does not allow the \ character at the end of a string.

Trinidad/Tobago
#15  

$path="C:\Users\ "
$len=Length($path)
$path[$len]=""

this can work to remove the extra space left at the end if you really wanted the \ at the end of the first variable

have any of you guys figured out how to print a forward bracket? i.e. "(" the backslash in front works for printing """ but not the (