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

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
sika05
Posts: 7
Joined: Wed Dec 26, 2018 7:53 pm

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

Post by sika05 » Sat Jan 26, 2019 10:59 am

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

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Sat Jan 26, 2019 12:55 pm

Heya sika05,

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

sika05
Posts: 7
Joined: Wed Dec 26, 2018 7:53 pm

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

Post by sika05 » Sat Jan 26, 2019 4:56 pm

Thank you bogs,

it works - best wishes from germany :D

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Sat Jan 26, 2019 5:46 pm

Glad I could help, best wishes in return from the states :D :D
Image

Post Reply

Return to “Windows”