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
155 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

932 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

11 Experts available now in Live!

Get 1:1 Help Now