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
Solved

get start path with CGI

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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