Whenever I use the Gethomepath function of Delphi I keep getting Shell Script Invocation Error.
Was this function replaced by a newer one?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With