Tip: Projects & BlackBox

From: Treutwein Bernhard <"Treutwein>
Date: Wed, 28 Apr 2004 13:42:16 +0200

----boundary-LibPST-iamunique-940371615_-_-
Content-type: text/plain

Dear BlackBox users,

A little known feature of BlackBox is the ability to use the
installation directory in read-only mode and have different
projects under different directories. This allows for
project specific configuration of the global menus etc.
This feature is hidden under "Server installation (Windows only)"
in "System/Docu/User-Man.odc". The only drawback is that you
have to modify the way you call BlackBox for different projects.

Enclosed is a little Visual-Basic script, which allows all
projects to be stored under some root path (H:\BlackBox in
my case) and to choose from this menu a project folder.
It then switches the current directory to this path (with
the result that File->Open offers you your project path)
and appends the /use path to the BlackBox command line.

For those of you, who have disabled the automatic (double
click) execution of VBS for security reasons, a tiny
BlackBox.cmd is included.

regards
--
	Bernhard Treutwein
	Bernhard.Treutwein(at)verwaltung uni-muenchen de (work)
	BdT(at)wildwein de (home)
------------------------------------------------------------ browse.vbs ----
' Author: Bernhard Treutwein BdT(at)wildwein de
' based on a hotline answer of the german computer magazin c't, issue 9/2004,
p. 184
' original script and copyright available at:
ftp://ftp.heise.de/pub/ct/listings/0409-184.zip
' modified with help of the original author Hajo Schulz
[hajo.schulz{([at]})nowhere.xy' Last change: 28-Apr-2004
Option Explicit
Dim sh, app, fldr
Dim prg, arg, mypath, root
Dim i
Set sh = WScript.CreateObject("WScript.Shell")
Set app = Wscript.CreateObject("Shell.Application")
prg = "D:\Programme\BlackBox\BlackBox.exe"   ' Define prg as the full path
name of your BlackBox installation
root = "H:\BlackBox\"                        ' Define root as the full path
name of the root directory of your BlackBox Projects
set fldr = app.BrowseForFolder(0, "Please choose project folder" & CHR(10) &
CHR(10) & "Cancel uses Blackbox Program directory", 65, root)
If fldr Is nothing then ' Cancel pushed, use default
  mypath = ""
 Else
  mypath = fldr.Self.Path
End If
If mypath = "" Then
  sh.Run prg, 1, false
 Else
  sh.CurrentDirectory = mypath
  sh.Run prg & " " & "/use " & mypath, 1, false
End If
---------------------------------------------------------- blackbox.cmd ----
C:\WINDOWS\System32\WScript.exe "d:\Programme\blackbox\browse.vbs"
----------------------------------------------------------------------------
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xyTo get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xyCurrent posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-940371615_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIERlYXIgQmxhY2tCb3ggdXNlcnMsXHBhcg0KXHBh
cg0KQSBsaXR0bGUga25vd24gZmVhdHVyZSBvZiBCbGFja0JveCBpcyB0aGUgYWJpbGl0eSB0byB1
c2UgdGhlIFxwYXINCmluc3RhbGxhdGlvbiBkaXJlY3RvcnkgaW4gcmVhZC1vbmx5IG1vZGUgYW5k
IGhhdmUgZGlmZmVyZW50XHBhcg0KcHJvamVjdHMgdW5kZXIgZGlmZmVyZW50IGRpcmVjdG9yaWVz
LiBUaGlzIGFsbG93cyBmb3J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