Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to start vncviewer on cmd with parameter? #125

Open
leon2LF opened this issue Dec 1, 2023 · 3 comments
Open

how to start vncviewer on cmd with parameter? #125

leon2LF opened this issue Dec 1, 2023 · 3 comments
Assignees
Labels
Author Ticket author answer is needed

Comments

@leon2LF
Copy link

leon2LF commented Dec 1, 2023

hey bro,

my english is not good!

there is a case that I'm trying:

I use vncviewer.exe with command line
D:\Programs\testWebStartexe\vncviewer.exe -proxy 192.168.5.129:5901 ID:66666666 -password 12345678
that's running ok! vncviewer running with right paramter!
image

but when I copy that command into a startvnc.bat file then run the bat file

D:\Programs\testWebStartexe\vncviewer.exe -proxy %1 %2 -password %3

,the cmd echo command that looks the same.

actually,the vncviewer.exe run like D:\Programs\testWebStartexe\vncviewer.exe whitout parameter。

image

What's wrong with me? how can I do it correctly?

@RudiDeVos
Copy link
Member

Looks like a bat issue;
Try first the full line in the bat file, at least you should see he connect to 5901 and not 5900
D:\Programs\testWebStartexe\vncviewer.exe -proxy 192.168.5.129:5901 ID:66666666 -password 12345678

The bat looks good to me, unless some invisible chars are in it.

@Neustradamus Neustradamus added the Author Ticket author answer is needed label Dec 3, 2023
@Neustradamus
Copy link

@leon2LF: Have you seen the @RudiDeVos comment?

You screenshot has 5900 port, it is not 5901.

@Neustradamus
Copy link

@leon2LF: Have you seen the @RudiDeVos comment?

Your ticket has been solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author Ticket author answer is needed
Development

No branches or pull requests

3 participants