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
158 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
  • 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

860 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