You are here: Available Utilities > L > LBYPROC > Adding Resources > Example 1

Adding Resources: Example 1

This example shows how to add a resource to a development library. The script adds a FAP file stored on the disk into a development library. The FAP file is assigned a name of Q1ADDR, a type of FAP, a version of 00001, and a revision of 00001.

If you run the utility with these parameters:

C:\fap\dll\dms1dm>lbyproc /i=deflib\add1.lsc

You will get this output from the utility:

--- LBYPROC Copyright (C) 1997, 2009 Oracle. All rights reserved.
--- Documaker library script processor
 
ADD Successful.  File<.\forms\Q1ADDR.fap>
 
Add performed.  The following number of objects were added to the library.
 
LIBRARY:    DEFLIB\MASTER.LBY
BDFs :      0
GRPs :      0
FORs :      0
FAPs :      1
DDTs :      0
LOGs :      0
DALs :      0
XDDs :      0
-------------
Total:      1
 
--- LBYPROC Complete ---
 

Here are the contents of the add1.lsc file, which contains the Add script:

<LBYSCRIPT>
<ADD>
<LIBRARY VALUE="DEFLIB\MASTER.LBY"/>
<FILENAME VALUE=".\forms\Q1ADDR.fap"/>
<NAME VALUE="Q1ADDR"/>
<TYPE VALUE="FAP"/>
<VERSION VALUE="00001"/>
<REVISION VALUE="00001"/>
<MODE VALUE=""/>
<STATUS VALUE=""/>
<CLASS VALUE=""/>
<PROJECT VALUE=""/>
</ADD>
</LBYSCRIPT>