Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CGI VB5.0 directory problem

Posted on 1997-10-23
1
Medium Priority
?
251 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 200 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

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 Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

636 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