|
From: Alfred P. R. <al...@ya...> - 2005-05-17 19:50:06
|
You can also use the DOS xcopy /k to copy attributes. However, Per is right, and if you use Mingw and/or Msys then you can use cp via DOS. Read the help on xcopy as there are quite a few options.
Per Westermark <pw...@ia...> wrote: Some - non-complete - notes about copy:
copy will preserve date/time of last write.
copy will modify date/time of last access
copy will modify date/time of file creation
copy will append archive flag
copy will remove read-only flag
copy will not even find system file
copy will not even find hidden file
In short - copy is inferior to cp.
Simple solution: Download a win32-compatible port of the cp command.
/Per W
On Tue, 17 May 2005, Alexsandro Meireles wrote:
> Hi, all!
> I need to translate the system command cp -p to work with Windows.
> Does anyone know if dos copy translate exactly what cp -p?
> Syntax are as follows:
> LINUX: system("cp -p $oldname $newname");
> WINDOWS: system("copy $oldname $newname");
> I am not sure if copy can copy from one file to the other with EXACTLY the
> same attribute as -p does.
> Thanks in advance!
> Best,
>
> --
> Alexsandro Meireles
>
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
Alfred P. Reaud
|