|
From: Reid T. <Rei...@at...> - 2005-05-17 21:57:03
|
i think google will work for that too
=20
reid=20
-----Original Message-----
From: Alexsandro Meireles [mailto:mei...@gm...]=20
Sent: Tuesday, May 17, 2005 5:34 PM
To: Per Westermark
Cc: Dev C++
Subject: Re: [Dev-C++] Cp vs. copy
Hi!
=20
Could you please tell me where I can download such win-32 compatible
port of the cp command?
=20
Thanks in advance,
=20
Alex.
=20
On 5/17/05, Per Westermark <pw...@ia...> wrote:=20
Some - non-complete - notes about copy:
copy will preserve date/time of last write.
copy will modify date/time of last access=20
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.=20
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.=20
> 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");=20
> 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
>
--=20
Alexsandro Meireles
|