Solved

get start path with CGI

Posted on 1998-12-03
2
167 Views
Last Modified: 2010-04-04
Is there any way to get the full PATH
from where my CGI start.
In ordinary Application I make it with Application.ExeName.
I try with WinAPI function: GetCurrentDirectory, GetCommandLine but they returned me not expected values.
0
Comment
Question by:jpenev1
2 Comments
 
LVL 7

Accepted Solution

by:
BlackMan earned 70 total points
Comment Utility
You can use this code...

var
  FN: array[0..MAX_PATH- 1] of char;
  ScriptName : String;
begin
  SetString(ScriptName, FN, GetModuleFileName(hInstance, FN, SizeOf(FN)));
end;

0
 

Author Comment

by:jpenev1
Comment Utility
thank U very much BlackMan
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

763 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