Log in

View Full Version : Running/executing a clients exe with parameters!



Contex
11-06-2008, 10:07 PM
Hello :)
Well, I made a toolbar for my clan and I'm wondering how can I execute clients .exe with some parameters, could someone come out with an example?

Thanks, Contex

Jesdisciple
11-07-2008, 08:16 PM
Can you give more details? To begin with, what language did you use to build this toolbar? And why do you need to execute a file on the user's computer?

Contex
11-09-2008, 06:19 PM
Alright, here's some more information:

Acctualy i used this web-based tool to make a toolbar:
www.conduit.com

I already tried the built in function in the tool, didnt work.

Also, I want to execute a file on the user's computer because i want to make a list, of the Game servers, and than I want them to execute a file with some paramters, or even just execute a .bat file if its possible.

Thanks

Jesdisciple
11-09-2008, 08:27 PM
I was going to refer you to Conduit's forum, but I see you already found it and held an extensive conversation (http://forum.conduit-network.com/index.php?topic=5397.0) there. I do wish you had linked to it yourself, but you may have thought the staff here wouldn't like a link to another forum. As far as I know, they don't mind so long as it's relevant and not hosted by a competitor of DD.

First, EJ's script was not written in JavaScript but VBScript; VBScript is only executed by Microsoft software - in this case, only by Internet Explorer. I refuse to tell you how to make something only work in IE, so let's move on.

I get the impression that, once you create the file association he mentioned, you can run any file covered by that association by just sending the browser to a URL. I don't know about file associations, so I'll just tell you how to send the browser to a URL.

There are two ways to do this; which one is better depends on whether you have anything to do after the local file is opened. (I'll assume that the string holding the URL is named url.) If you do have something else to do:
open(url, '_blank');Otherwise:
location.href = url;

If I can help with anything else not specific to IE, just tell me.

Contex
11-09-2008, 11:29 PM
Well, I've been trying to change and write some code now, and it's not working so I gave it up, tried 10-15 diffrenthings. Also this did one:
http://au2.php.net/manual/en/language.operators.execution.php#29481

But it says I don't have the permisson for it, so any solution or a code you could let me look at.

Thanks, Contex

Jesdisciple
11-10-2008, 03:28 AM
I tried to access my local filesystem with my code and it didn't work. (I'm really surprised, as I think the typical security restrictions should be sufficient.)

All I can tell you is to show your broken code to EJ, because I don't know anything about Conduit. Are you having trouble posting your code over there?

Also, PHP won't work for the user's computer anyway; it executes on the server while you want to execute something on the client.