Page 1 of 1

Why no copy file facility?

Posted: Fri Aug 07, 2009 11:14 am
by ConvertFromOldNGs
by Silver Springs ... >> Sun, 2 May 1999 23:13:04 GMT

Hi
I am building some file management facilities into my JADE application and make use of the FileFolder class to create sub-directories as required.

I then have to copy some template Word files from the BIN directory to the newly created sub-directory -- but I couldn't find a way from within JADE to copy files. Pretty basic -- other languages provide it -- but why not JADE ?

I have added the Windows Kernel32.DLL as an external library and made use of the copyfile function within there to achieve the functionality I require -- so all's well on that front --- but it would be easier for people if JADE had a similar function built in -- n'est pas ?

SilverSprings ...
silversprings@easyliving.com

Re: Why no copy file facility?

Posted: Fri Aug 07, 2009 11:14 am
by ConvertFromOldNGs
by Darrell Duniam >> Sun, 2 May 1999 23:25:30 GMT

Just slightly off the subject, if you use the CardSchema, it has the following methods on the CnKarmaCntrl class:

copyFile(sourceFile, destFile:String; failIfExists:Boolean):Boolean;
moveFile(sourceFile, destFile:String):Boolean;
deleteFile(fileName:String):Boolean;

darrell.