Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Run files on the server?

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,33495
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Run files on the server?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Run files on the server? - 4/13/2006 9:01:25 AM   
  Mattis

 

Posts: 7
Score: 0
Joined: 4/9/2006
Status: offline
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
 
 
Post #: 1
 
 RE: Run files on the server? - 4/17/2006 1:56:58 AM   
  ebgreen


Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
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

(in reply to Mattis)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Run files on the server? Page: [1]
Jump to:





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
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts