Page 1 of 1 1
Topic Options
#122015 - 2004-06-30 07:13 PM copy command
scott_s Offline
Fresh Scripter

Registered: 2004-06-15
Posts: 15
With the built in copy command is there an option to only copy if file is newer? liek the /d option on Xcopy?

thanks

Top
#122016 - 2004-06-30 08:22 PM Re: copy command
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
Nope. Use xcopy or Robocopy together with the shell or run command
_________________________
Co


Top
#122017 - 2004-07-01 01:11 AM Re: copy command
chmod Offline
Fresh Scripter

Registered: 2004-06-01
Posts: 24
Loc: Sacramento, CA
Or if you really need to use the Copy command, try using it in conjunction with the GetFileDate command and If statement such as...
Code:
$FileTime = Right(GetFileTime($FileName),8) ; get file creation time
$FileDate = Left(GetFileTime($FileName),10) ; get file creation date


Top
#122018 - 2004-07-01 04:11 AM Re: copy command
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
It would be much easier to use COMPAREFILETIMES(). Incidentally, the KiXtart Manual does show how to accomplish the task in the original post via COMPAREFILETIMES().
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.047 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org