Solved

How do I make Netscape run a CGI written in Visua Basics if it's a .EXE file and not try to download it? HELP ...ASAP PLEASE

Posted on 2000-05-03
9
159 Views
Last Modified: 2010-05-02
I have written a cgi in visual basics which compiles to  a .exe file. It is residing in the cgi bin of an IIS web server. When called with Internet Explorer it runs perfect as CGI , when called with Netscape, it tries to download it ...how do i get Netscape to run the .exe and not try to download it? Scoured the web all day and can't figure it out..Thanks for the help in advance.
0
Comment
Question by:Jpeger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 1

Accepted Solution

by:
schrmar earned 200 total points
ID: 2774038
The way i have done it using cgishell.exe it is a shareware program available at www.greyware.com.  It functions as a wrapper to your vb.exe

0
 

Author Comment

by:Jpeger
ID: 2774293
schrmar
Could You explain further exactly what steps exactly you take to accomplish it please?...When i get this cgishell what do I do please?
0
 
LVL 1

Expert Comment

by:schrmar
ID: 2774371
rebuild your project incorporating cgishell.bas.  in sub main before your code put "cgistartup" after your code put "cgishutdown"

to reference inputting form variables use:
cgiGetEnv("variablename")

to build the output use:
OUT "this will be html"

Everything else should work as it does in your current exe.

put cgishell in your inetpub/scripts directory.  Also place your vb.exe in it.

to call it use:  http://server/scripts/cgishell.exe/programname.exe

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Jpeger
ID: 2774486
schrmar
Thanks for the explaination.. will go try it here shortly and get back to you ASAP... thanks for the help... anything further I need to know? All help will be appreciated greatly..... and if this works..... You can have a lot more than the 200 points .. heh..... thanks a heep
0
 
LVL 1

Expert Comment

by:schrmar
ID: 2774505
The only thing I can add is that the shareware version outputs "created with greyware" at the bottom of the page.  

The registered version costs $150 for a corporate license.  When you get the registered version you can just replace the existing cgishell.exe with the registered one and the message will go away.

Hope this works for you.  It solved a headache of my own.  
0
 

Author Comment

by:Jpeger
ID: 2774983
schrmar
found the answer...it works...and it was so simple...just needed to send a

"content type = text/html"

in the header...that's all it took. But you did give it a good try ... and I learned from it regardless... Thanks for the help and hope to speak to you again in the furture..Here's the points you well deserve..regardless... Hope my input will also help you to help others in the future... may I get Your email for the future ? mine is Jpeger@ithink.net
0
 
LVL 1

Expert Comment

by:schrmar
ID: 2774992
schrmar@chrobinson.com

I am glad all worked out well for you.

Mark
0
 
LVL 1

Expert Comment

by:schrmar
ID: 2775003
schrmar@chrobinson.com

I am glad all worked out well for you.

Mark
0
 

Author Comment

by:Jpeger
ID: 2775009
Drop me an email with Your email if You wouldn't mind...appreciate all Your help Jpeger@ithink.net
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question