Page 1 of 1 1
Topic Options
#156671 - 2006-02-06 11:12 AM GUICopy
kirkside Offline
Getting the hang of it

Registered: 2006-01-19
Posts: 52
Loc: UK
Could someone give me a few hints on how to use GUICopy with the below code please? The below copy method is kicked off when a button is clicked. It works fine, but I need to see a progress bar. Thanks as always.

Code:
  
Function CopyUser()

dim $serverPath,$localPath
$serverPath = 'C:\data\Share\' + $User.text
$localPath = 'c:\data\User\'
If exist($serverPath)
Copy $serverPath + '\*.*' $localPath /c /h /r /s
EndIf

EndFunction


Top
#156672 - 2006-02-06 11:18 AM Re: GUICopy
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Just doing this:

Code:

GUICopy("insert source here", "insert destination here")



when the button is pressed is not working in you situation?
GUICopy should be called by or in the script you are running.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#156673 - 2006-02-06 11:34 AM Re: GUICopy
kirkside Offline
Getting the hang of it

Registered: 2006-01-19
Posts: 52
Loc: UK
Ok. I think I have found the problem. I was testing with small files. The files were so small that no copy progress would appear. I have now tested with large amounts of files and I do now get a progress. Apologies for my stupidity but thank you for the response. Just to double check, I have tested the copy with my original code with the large files and I do not get a progress bar with it. GUICopy is working a treat. New code below.

Code:
  Function CopyUser()

dim $serverPath,$localPath
$serverPath = 'F:\Share\' + $User.text
$localPath = 'c:\data\User\'
If exist($serverPath)
GUIcopy($serverPath + '\*.*', $localPath)
EndIf

EndFunction


Top
#156674 - 2006-02-06 11:40 AM Re: GUICopy
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Quote:


....
Apologies for my stupidity
....





LOL no worries.

Quote:


....
I have tested the copy with my original code with the large files and I do not get a progress bar with it.
....





Yep. The build-in copy does not show any progress bars.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#156675 - 2006-02-06 06:51 PM Re: GUICopy
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Ah, GUICopy(). An oldie, but goodie. I'm glad it's working for you.
Top
Page 1 of 1 1


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

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.05 seconds in which 0.027 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