Why no copy file facility?

Discussions about design and architecture principles, including native JADE systems and JADE interoperating with other technologies
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Why no copy file facility?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:14 am

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Why no copy file facility?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:14 am

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.


Return to “Design and Architecture”

Who is online

Users browsing this forum: No registered users and 18 guests