Search found 4 matches

by intern7
Mon Jan 05, 2009 11:39 pm
Forum: Coding Questions
Topic: CopyDirectory doesn't seem to work
Replies: 9
Views: 1653

Are you all using the code the same way that I was? There wsan't anything intrinsically wrong with the initial code, something that I missed?
by intern7
Mon Jan 05, 2009 6:15 pm
Forum: Coding Questions
Topic: CopyDirectory doesn't seem to work
Replies: 9
Views: 1653

That's strange, I've been running it again and again here and sometimes it returns 0 and sometimes it doesn't. I can't figure out what the difference is -- there aren't try/catch statements that I can put in, are there?
by intern7
Mon Jan 05, 2009 6:00 pm
Forum: Coding Questions
Topic: CopyDirectory doesn't seem to work
Replies: 9
Views: 1653

Maybe it overflowed the bounds of some array or something. There's 1.19 GB of files in the main directory, 3,035 files in 205 subfolders.

I'm running it again now, to see how much is copied over.
by intern7
Mon Jan 05, 2009 4:58 pm
Forum: Coding Questions
Topic: CopyDirectory doesn't seem to work
Replies: 9
Views: 1653

CopyDirectory doesn't seem to work

OpenConsole()
ClearConsole ()
;
;Print(temp$)
;PrintN("")
PrintN ("Please stand by for SYSTEM BACKUP...")

source$="c:\data\"
destination$ = "e:\backup\" + FormatDate("%yyyy-%mm-%dd",Date()) + "\"

Result = CopyDirectory(source$, destination$, "*.*", #PB_FileSystem_Recursive)

If 0 ...