[futurebasic] Re: Installer avoidance

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 1997 : Group Archive : Group : All Groups

From: tatewake@... (Terence Jordan)
Date: Sun, 23 Nov 1997 20:11:01 -0400
I didn't see this get posted, here it is again.

>And Terence, what do you mean by:
>
>>(Now that I think of it, you may find "FN CopyFiles" more useful.)
>
>From whence commeth FN CopyFiles (Function Junction, maybe?)?

It was actually part of the FB 1.0 help files. I don't think it's in FBII

Here's the actual code:

LOCAL FN CopyFiles(SaveName$,VolRefNum%)
 pbPtr&.ioCompletion&    = 0
 pbPtr&.ioNamePtr&       = @gSaveName$
 pbPtr&.ioVRefNum%       = gVolRefNum%
 pbPtr&.ioFDirIndex%     = 0
 osErr = FN GETFILEINFO (pbPtr&)
 BLOCKMOVE @infostring$, pbPtr& + _ioBuffer, 16
 'Note, above line handles "Salad"/Info fork.
 'My favorite line :-)
 osErr = FN SETFILEINFO (pbPtr&)
END FN



-- Terence Jordan (tatewake@...)
Inspired Software. http://inspired.netstreet.net/
Macintosh, Dos, Windows, and BeOS software solutions.
Phone: 407-728-7563
............................................
. New: Renegade Space Ninja for Macintosh! .
.      Visit our page for more info.       .
............................................