Page 1 of 1

Put shell problem with special Char 122 "|" - ftp access

Posted: Sat Jan 26, 2019 10:59 am
by sika05
Hello,

has someone a hint?

I want to open a explorer window with an ftp access with direct login with the following command.

put "explorer.exe" & " ftp://ftp.xxx.c|dyn:navd@ftp.xxx.c" into tCommand
put shell (tCommand) into errortxt
answer errortxt

Now the used character 122 "|" "vertical line" causes an error - "Syntax for filename is wrong".

How can I sent a "|" to the explorer with livecode?

Thx and best wishes
Siggi

Re: Put shell problem with special Char 122 "|" - ftp access

Posted: Sat Jan 26, 2019 12:55 pm
by bogs
Heya sika05,

You have to escape the pipe symbol, like shown here. Then it should work.

Re: Put shell problem with special Char 122 "|" - ftp access

Posted: Sat Jan 26, 2019 4:56 pm
by sika05
Thank you bogs,

it works - best wishes from germany :D

Re: Put shell problem with special Char 122 "|" - ftp access

Posted: Sat Jan 26, 2019 5:46 pm
by bogs
Glad I could help, best wishes in return from the states :D :D