Whenever I use the Gethomepath function of Delphi I keep getting Shell Script Invocation Error.
Was this function replaced by a newer one?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I finally found a workaround for this:
blogs.embarcadero.com/ao/2011/10/04/39144#comment-7998
So “S := ExtractFilePath(paramstr(0)); S := Copy(S, 1, length(S) – 14);” gets the job done.
Note that the length of S depends on your application title.