|
From: Per W. <pw...@ia...> - 2005-05-17 19:26:02
|
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
>
|