Solved

CGI VB5.0 directory problem

Posted on 1997-10-23
1
241 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 6

Accepted Solution

by:
alamo earned 50 total points
ID: 1831003
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

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…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to count occurrences of each item in an array.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

726 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