Results 1 to 6 of 6

Thread: Running/executing a clients exe with parameters!

  1. #1
    Join Date
    Nov 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Running/executing a clients exe with parameters!

    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

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    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?
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

  3. #3
    Join Date
    Nov 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    I was going to refer you to Conduit's forum, but I see you already found it and held an extensive conversation 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:
    Code:
    open(url, '_blank');
    Otherwise:
    Code:
    location.href = url;
    If I can help with anything else not specific to IE, just tell me.
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

  5. #5
    Join Date
    Nov 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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/languag...tion.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

  6. #6
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    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?

    Edit: 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.
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •