Solved

CGI VB5.0 directory problem

Posted on 1997-10-23
1
212 Views
Last Modified: 2013-12-25
I am using VB5.0 to program a CGI script, and it needs to know the dir from where it was executed no matter what directory it is executed from. For example if a HTML file say in c:\inetpub\wwwroot used a form to execute the CGI script in c:\inetpub\exe for form data collecting, when i use Curdir in my script i get c:\inetpub\wwwroot as curdir when i needed c:\inetpub\exe, what do i do to get the CGI scripts dir no matter where the CGI script is placed!!

Thomas
0
Comment
Question by:thomasschmidt
1 Comment
 
LVL 6

Accepted Solution

by:
alamo earned 50 total points
Comment Utility
This less of a CGI question than a VB question... use App.Path to find out what directory your .exe is in.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

762 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

9 Experts available now in Live!

Get 1:1 Help Now