Anstatt:
machste:ts-soft hat geschrieben:Code: Alles auswählen
Ziel.s = "c:\windows\temp\test.exe" Path.s = Space(#MAX_PATH * 2) GetModuleFileName_(0, @Path, #MAX_PATH * 2) CopyFile(Path, Ziel)
Code: Alles auswählen
Ziel.s = "c:\windows\temp\test.exe"
Path.s = Space(#MAX_PATH * 2)
OpenLibrary(0,"kernel32.dll")
CallFunction(0,"GetModuleFileNameA",0, @Path, #MAX_PATH * 2)
CloseLibrary(0)
CopyFile(Path, Ziel)
