Run files on the server?

Author Message
Mattis

  • Total Posts : 9
  • Scores: 0
  • Reward points : 0
  • Joined: 4/9/2006
  • Status: offline
Run files on the server? Thursday, April 13, 2006 10:01 AM (permalink)
0
Seasoons Greetings!


I have a file test.exe that I'm trying to run on my server. It lives in /wwwroot/ on my IIS server with read and run permissions. According to my book it should run from there, but every time I try to go there with http://localhost/test.exe, nothing happens. If I try to replace /localhost/ with /127.0.0.1/ the webbrowser downloads the file, even when I tell it to execute. My question is: Should I have to tell the browser what to do, shouldn't it just run? Is there a folder programs should reside in? and When you write VBscripts, is it ok to use a texteditor and just name them .vbs, where should they go?


Thanks for your help
Nugget
 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: online
    RE: Run files on the server? Monday, April 17, 2006 2:56 AM (permalink)
    0
    I am not a server-side scripter, so my answers will be somewhat limited:

    Should I have to tell the browser what to do, shouldn't it just run?
      I don't believe that web browsers in general will execute files. I would think that would be a huge security hole. If you want to execute the file I think you may need to do it through VBScript within a page.

    Is there a folder programs should reside in?
      As far as I know, wwwroot should work. I've seen people create a \Scripts subfolder so they can control exe permissions before as well.

    When you write VBscripts, is it ok to use a texteditor and just name them .vbs?
      Yes.

    where should they go?
      See the question about where programs should reside.
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9