How do you copy your applicaiton to another directory? like in vb you can do
Filecopy (app.path & "/exename.exe", newdestination)
i am using lcc win32 compiler
How do you copy your applicaiton to another directory? like in vb you can do
Filecopy (app.path & "/exename.exe", newdestination)
i am using lcc win32 compiler
This is somewhat more complicated than just moving the file data. You could do this by opening it, reading it, writing it to the new location, closing it and then setting its permissions. Then delete the original.
However, this ignores the fact that the registry was altered when the application was originally installed, so you'd also have to edit the registry and anything that expects the app to be in the position you're moving it away from.
enjoy.
Code:#include <windows.h> ... CopyFile("source.txt","target.txt",0);