creating a Shortcut to a file
Icon Shortcut Verknüpfung anlegen You can try the code below – maybe you needed CoInitialize? The code works fine for me on NT…
Get an EXEs Version-Information
Q: How to get an EXEs Version-Information: A: (found on a Newsgroup from Glenn Hancock) Yes it is and here is a function…
GetFileDate
[code lang=”delphi”]procedure TForm1.Button2Click(Sender: TObject); Var S1 : String; F1 : File; FStruct : TOFSTRUCT; TheDate : TDateTime; Han1 : Integer; I : Integer;…
SetFileDate
[code lang=”delphi”]procedure TForm1.Button1Click(Sender: TObject); Var S1 : String; FHan : Integer; I2 : Integer; S2 : String; S3 : String; FStruct : TOFSTRUCT;…
Getting the Temp Path of the System
You know, every PC can have a different location where the user likes to store temporary files. But Windows has an API function…
ExecAndWait (LaunchAppAndWait für Delphi)
—– available WindowStates: SW_SHOWDEFAULT SW_SHOW SW_SHOWMINIMIZED SW_SHOWMAXIMIZED … look at Windows-API ———— [code lang=”delphi”]function ExecAndWait(const Filename, Params: string; WindowState: word): boolean; var SUInfo:…
ExecuteFile (LaunchApp for poors :-) )
With the Delphi-Procedure “ExecuteFile” (details in Online-Help) you can run programs from within your Delphi appplication without handling complicated API-commands (CreateProcess etc..). [tags]Delphi,…
How To Get VersionInformation
> Can I get the Application Version, which I set using IDE’s option menu , in > code? How? Here’s an example:
how to let EXE delete itself while running?
Q: how to let EXE delete itself while running? >I want to delete exe file while is opened. My friend did that in…