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
157 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

776 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