|
From: <Mat...@Ve...> - 2005-05-17 19:58:47
|
This is what is needed: http://unxutils.sourceforge.net/ <http://unxutils.sourceforge.net/> It will not depend on any stupid compatibility DLLs. -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Alfred P. Reaud Sent: Tuesday, May 17, 2005 12:50 PM To: Dev-Cpp UserList Subject: Re: [Dev-C++] Cp vs. copy 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 <mailto:al...@ya...> <http://www.geocities.com/alreaud/> ___________________________________________________________________ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you. |