Solved

get start path with CGI

Posted on 1998-12-03
2
172 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
ID: 1349121
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
ID: 1349122
thank U very much BlackMan
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…

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