CopyFile Function
This function is used to copy a file from a path to another file location/path.
The structure of the function as follow::
BOOL WINAPI CopyFile(
IN LPCSTR lpExistingFileName,
IN LPCSTR lpNewFileName,
IN BOOL bFailIfExists
);
Where::
lpExistingFileName is the source file location
lpNewFileName is the location where the file copy to
bFailIfExists is to set to replace or not.
bFailIfExists == true
The file won't be replaced.
bFailIfExists == false
The file will be replaced.
Monday, July 16, 2007
Thursday, July 05, 2007
How to use RPM
In its simplest form, RPM can be used to install packages:
rpm -i foobar-1.0-1.i386.rpm |
The next simplest command is to uninstall a package:
rpm -e foobar |
rpm -i ftp://ftp.redhat.com/pub/redhat/rh-2.0-beta/RPMS/foobar-1.0-1.i386.rpm |
Please note, that RPM will now query and/or install via FTP.
rpm --help |
You can find more details on what those options do in the RPM man page, found by typing:
man rpm
Subscribe to:
Posts (Atom)