|
From: Alexsandro M. <mei...@gm...> - 2005-05-17 21:34:07
|
Hi!
Could you please tell me where I can download such win-32 compatible port=
=20
of the cp command?
Thanks in advance,
Alex.
On 5/17/05, Per Westermark <pw...@ia...> wrote:=20
>=20
> Some - non-complete - notes about copy:
>=20
> 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
>=20
> In short - copy is inferior to cp.
>=20
> Simple solution: Download a win32-compatible port of the cp command.
>=20
> /Per W
>=20
> On Tue, 17 May 2005, Alexsandro Meireles wrote:
>=20
> > 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=
=20
> the
> > same attribute as -p does.
> > Thanks in advance!
> > Best,
> >
> > --
> > Alexsandro Meireles
> >
>=20
>=20
--=20
Alexsandro Meireles
|