Tip: Projects & BlackBox

From: Treutwein Bernhard <EX:/O=ZUV/OU=FIRST>
Date: Wed, 28 Apr 2004 11:42:15 +0000

----boundary-LibPST-iamunique-860690038_-_-
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"
----------------------------------------------------------------------------
----boundary-LibPST-iamunique-860690038_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIERlYXIgQmxhY2tCb3ggdXNlcnMsXHBhcg0KXHBh
cg0KQSBsaXR0bGUga25vd24gZmVhdHVyZSBvZiBCbGFja0JveCBpcyB0aGUgYWJpbGl0eSB0byB1
c2UgdGhlIFxwYXINCmluc3RhbGxhdGlvbiBkaXJlY3RvcnkgaW4gcmVhZC1vbmx5IG1vZGUgYW5k
IGhhdmUgZGlmZmVyZW50XHBhcg0KcHJvamVjdHMgdW5kZXIgZGlmZmVyZW50IGRpcmVjdG9yaWVz
LiBUaGlzIGFsbG93cyBmb3JccGFyDQpwcm9qZWN0IHNwZWNpZmljIGNvbmZpZ3VyYXRpb24gb2Yg
dGhlIGdsb2JhbCBtZW51cyBldGMuXHBhcg0KVGhpcyBmZWF0dXJlIGlzIGhpZGRlbiB1bmRlciAi
U2VydmVyIGluc3RhbGxhdGlvbiAoV2luZG93cyBvbmx5KSJccGFyDQppbiAiU3lzdGVtL0RvY3Uv
VXNlci1NYW4ub2RjIi4gVGhlIG9ubHkgZHJhd2JhY2sgaXMgdGhhdCB5b3VccGFyDQpoYXZlIHRv
I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HBhcg0KfQ==
----boundary-LibPST-iamunique-860690038_-_---
Received on Wed Apr 28 2004 - 13:42:15 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:47 UTC