Page 1 of 1 1
Topic Options
#152148 - 2005-11-23 08:42 PM Help using GUICopy()
NtegrA Offline
Lurker

Registered: 2005-08-22
Posts: 1
I am attempting to use the guicopy() UDF to copy directory from Z: to C: (including sub dirs)

can someone tell me the correct format of the command? I have tried:

GuiCOPY ("Z:\PRINTERS" , "C:\PRINTERS", 528) <- @ERROR = 3

If I create the directory ahead of time or change destination to "C:" or "C:\", I get ERROR:

"expected ')'! at line number 264" (this is pointing to the ENDSELECT at the end of the guicopy function)

Actual code fragment follows:
Code:
  GO Z:

;**************************************
MessageBox("Now Creating local source files","Local Source Creation",0,5)
? "Now creating local source files. This may take up to 8 minutes." + @CRLF + "Please remove CD from drive. Machine will restart when finished." + @CRLF

GuiCOPY ("Z:\PRINTERS" , "C:\PRINTERS",528)
? @ERROR " : " @SERROR
IF @ERROR > 0 MessageBox("There was a problem","ERROR")

MessageBox("Now Creating local source files","i386",0)
COPY $SetupFiles +"\" "C:\I386\" /c /h /s
COPY "Z:\Drivers\" + $Model + "\" "C:\DRIVERS\" /c /h /s

;**************************************


Top
#152149 - 2005-11-23 08:51 PM Re: Help using GUICopy()
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Error 3: The system cannot find the path specified.

It looks like the path to the files is not right.
How about adding a \ after the source and destination folder?
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#152150 - 2005-11-23 10:54 PM Re: Help using GUICopy()
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what is the z-drive?

have you edited the guicopy udf in any way?
_________________________
!

download KiXnet

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 525 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.063 seconds in which 0.036 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