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
154 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
 

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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now