Page 1 of 1 1
Topic Options
#73886 - 2003-03-05 03:37 PM Converting this XCopy32 command to KiXtart
kncowans Offline
Getting the hang of it

Registered: 2000-11-11
Posts: 98
Loc: Doncaster, UK
Hello all

I am trying to replace all occurences of XCopy32 within my scripts to KiXtart especially now that Copy supports Subdirectories and Hidden Files.

I need to convert the following XCopy32 command to KiXtart but am having very little success.

XCopy32 "Source" "Destination" /k /e /h /i /q /d

I can figure out how to convert all of the switches except for /d which copies only newer files.

Any suggestions?

Thanks in advance

Kevin
_________________________
Kevin Cowans Senior ICT Technician The Armthorpe School

Top
#73887 - 2003-03-05 03:47 PM Re: Converting this XCopy32 command to KiXtart
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You will have to write a UDF for this that checks every file for the correct filedate. However, using XCOPY for this task is definitely faster and more efficient than rewriting this functionality into a UDF.

As for the structure of a potential UDF. You will have to enumerate each file/folder in the source directory, check whether a potentially existing file inthe destination directory fits the date/time constraints (use DATEMATH() UDF)) and then copy the file/folder. Definitely not efficient.
_________________________
There are two types of vessels, submarines and targets.

Top
#73888 - 2003-03-05 04:20 PM Re: Converting this XCopy32 command to KiXtart
kncowans Offline
Getting the hang of it

Registered: 2000-11-11
Posts: 98
Loc: Doncaster, UK
Hello Sealeopard

Thanks for the reply.

It looks as if the UDF idea is out the window for now then, no time to write it.

One question.

When the XCopy32 command runs I get a minimised window in the bottom corner of the screen.

This is what I want to get rid of.

Any suggestions as to how I can suppress the console window from opening?

Thanks in advance

Kevin
_________________________
Kevin Cowans Senior ICT Technician The Armthorpe School

Top
#73889 - 2003-03-05 04:26 PM Re: Converting this XCopy32 command to KiXtart
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
How do you call the XCOPY command?

Please read Not quite everything you wanted to know about RUN and SHELL
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.148 seconds in which 0.085 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