Page 1 of 1 1
Topic Options
#203987 - 2011-12-22 08:00 PM Copy command enhancement
KIXKicks Offline
Starting to like KiXtart

Registered: 2002-07-26
Posts: 177
Loc: Vancouver, WA
Can the Copy command be modified to include support for copy only if newer (like XCOPY with the /D switch)?
Top
#203988 - 2011-12-22 11:06 PM Re: Copy command enhancement [Re: KIXKicks]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4546
Loc: USA
You can do this in a different way now...

something like...
 Code:
$newfile=@LDRIVE + "\USER.INI"
$oldfile="%temp%\USER.INI"
if CompareFileTimes($newfile,$oldfile)=1
  COPY $newfile $oldfile
ENDIF

Top
#204420 - 2012-03-08 01:03 AM Re: Copy command enhancement [Re: Allen]
KIXKicks Offline
Starting to like KiXtart

Registered: 2002-07-26
Posts: 177
Loc: Vancouver, WA
Yes, but wildcards are more difficult.
Top
Page 1 of 1 1


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

Who's Online
0 registered and 242 anonymous users online.
Newest Members
SERoyalty, mytar, Gabriel, Alex_Evos, Dansen
17869 Registered Users

Generated in 0.201 seconds in which 0.167 seconds were spent on a total of 13 queries. Zlib compression enabled.

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