PDA

View Full Version : How do I include a script in the same directory as the sb8 file?



cnkinsd
02-20-2014, 11:38 AM
I would like to be able to include scripts that reside int he same directory as the sb8 file.

Instead of #include Script "test.sbi" from "c:\setup Builder Projects\test" which is an explicit location so if I move the project folder, I then have to change any includes as well as any install commands to show the new file locations explicitly

Just have it be relative as in #include script "test" from "This Directory"

Is there a way to do that for includes and install file(s) and Copy File(s)?

linder
02-21-2014, 02:18 AM
Hello,

Just use the [SB_PROJECT] compiler variable.

For example:

[SB_PROJECT]\Your Include Name-1.sbi

Friedrich

cnkinsd
02-21-2014, 12:16 PM
Thanks, found that out as soon as I posted the question by digging around in the help files and just playing around with the code.

I've said it before and I will say it again...Great application

linder
02-21-2014, 12:27 PM
THANK YOU :)

Friedrich