Results 1 to 5 of 5

Thread: Script to execute a batch file

  1. #1
    Join Date
    Oct 2006
    Posts
    94
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Script to execute a batch file

    I use a webbased control panel to start a COD2 server. I am quite keen to learn how to do this myself. I know of 2 ways to start a COD2 server from home. Either through the exe file and amend the command line. Or you can make a batch file to do the exact same thing.

    I have heard before that a web page is not able to execute a exe file. But can a webpage start a batch file?

    If it's possible perhaps someone could direct me to the script that you help this to work???

    Thanks.

    Smithster.

  2. #2
    Join Date
    Oct 2006
    Posts
    94
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Cool

    Ive been reading through the forums. Ive seen that similar questions have been asked before about this sort of thing. I am assuming what I need to be done would be done by the use of ASP and batch files. Ive noticed the answers to others are about security risks envolved and I just want to make it known that this what I am trying to acomplish is completely server side. The batch file is also on the server itself. No batch file is ran from the client.

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You can most certainly start an executable from the webserver, provided it's on the same machine as the webserver. How you'd go about it with ASP, I've no idea, but it's definitely possible.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Oct 2006
    Posts
    94
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Ok thanks for your reply. What about using PHP to start an executable? Do you know how to do that?

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    Use only one thread per question. This one is now closed.

    http://www.dynamicdrive.com/forums/s...ad.php?t=21013
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •