Solved

get start path with CGI

Posted on 1998-12-03
2
169 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

24 Experts available now in Live!

Get 1:1 Help Now