Page 1 of 1

AnyDesk automation

Posted: 24 May 2023, 10:36
by montalban13
Hi!
I'm trying to automate some AnyDesk remote access. This is the Command from AnyDesk Documentation:

Code: Select all

echo <password> | anydesk.exe <ID/Alias> --with-password
With this code:

Code: Select all

id := "727850978"
password := "password"

stringToRun := "echo " . password . " | C:\Program Files (x86)\AnyDesk\AnyDesk.exe " . id . " --with-password"
Run(stringToRun,,,&pid)
I'm getting this error: https://ibb.co/rfqZRDc
If I remove all characters before 'echo' and the password it runs ok.
Anyone knows how to pass that echo instrucion to AnyDesk command?

Thanks in advance!