Community discussions

MikroTik App
 
infospa
just joined
Topic Author
Posts: 11
Joined: Sat Mar 05, 2016 7:28 pm

Could I open winbox via file extension?

Tue Aug 24, 2021 5:28 pm

I want to create a file, associated with winbox, like open.aaa, that allows me to compile the 'connect to' camp with the ip address that is inserted to the file. Is it possible?
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1490
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: Could I open winbox via file extension?

Tue Aug 24, 2021 9:07 pm

I have no idea what you mean by " 'connect to' camp ", however I think I understand what you are asking. Do you mean that you want a windows file that you can execute that will open Winbox and automatically connect to some particular router? That as opposed to the normal opening of Winbox that brings up the Managed or Neighbors list so you can pick what you connect to. If that is what you are asking, I am not aware of a way to do that. I could be wrong - I learned something else about Winbox today...
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7041
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Could I open winbox via file extension?

Tue Aug 24, 2021 9:10 pm

winbox accepts command line parameters, what you could do is run a shell script that reads a text file and executes winbox with IP address taken from the text file as command line parameter.
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1490
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: Could I open winbox via file extension?

Tue Aug 24, 2021 9:22 pm

winbox accepts command line parameters, what you could do is run a shell script that reads a text file and executes winbox with IP address taken from the text file as command line parameter.
Gee, I learned a second thing new about Winbox today! Must be my lucky day.
Actually I think I did know that one, but did not remember it.
 
infospa
just joined
Topic Author
Posts: 11
Joined: Sat Mar 05, 2016 7:28 pm

Re: Could I open winbox via file extension?

Wed Aug 25, 2021 11:36 am

I have omitted to say one important information.
What I would like to make is a button on a website that when I press it I press it downloads a file that when I open the winbox with the ip address already compiled.
I cannot directly launch c: \ winbox.exe 1.1.1.1, for obvious security reasons preset on all browsers.
So I thought of making a file with an extension such as file.xxx and associate it with winbox, but the problem is to make it fill in the field with the correct address.
Sorry for my bad English
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Could I open winbox via file extension?

Wed Aug 25, 2021 12:17 pm

On windows?
You know the existance of .bat files?
 
infospa
just joined
Topic Author
Posts: 11
Joined: Sat Mar 05, 2016 7:28 pm

Re: Could I open winbox via file extension?

Wed Aug 25, 2021 3:17 pm

Yes, I know of its existence but it cannot be run via a WEB browser
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Could I open winbox via file extension?

Wed Aug 25, 2021 3:25 pm

Why not?
Or you do not correctly explain what you want to do, or I not understand what you mean.
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1490
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: Could I open winbox via file extension?

Wed Aug 25, 2021 4:28 pm

I cannot directly launch c: \ winbox.exe 1.1.1.1, for obvious security reasons preset on all browsers.
Your statement does not make sense. Winbox and web browser don't relate.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Could I open winbox via file extension?

Wed Aug 25, 2021 4:50 pm

I use "FoxReplace" extension for Firefox to make click-able near all IP on web pages of user-manager.
With one click the browser open the CPE of the customer on WinBox...

If you do not explain what exactly is your end scope, you can receive only useless hints.
 
infospa
just joined
Topic Author
Posts: 11
Joined: Sat Mar 05, 2016 7:28 pm

Re: Could I open winbox via file extension?

Wed Aug 25, 2021 5:27 pm

I want to create a button on a website that by pressing it opens the winbox with the filled-in address.
I don't need all the rest
Sorry but I don't know English and I'm translating with google translate. so I find it hard to explain
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Could I open winbox via file extension?

Wed Aug 25, 2021 5:33 pm

Ok, understanded.

What is your language?

Windows?

Firefox?

Only on your browser or also on other customers?

Who is online

Users browsing this forum: Ahrefs [Bot], cyrq, TheCat12 and 90 guests