Re: [BLACKBOX] BB running as server

From: F.V.Tkachov <"F.V.Tkachov">
Date: Tue, 14 Apr 2009 20:58:24 +0400

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

I agree with Bernhard, it is a great way to manage multple projects.

However, I do suggest to consider a dual approach:
instead of running one vbs file and navigate to required directory,
drop a copy of the *.vbs file into any directory to make that directory a
working directory (the one after /USE) and run the script from there
(you probably navigate to that directory anyway using a file browser).

The content of the *.vbs file is attached.
You only have to modify the path to the Blackbox.exe and then copy the
same *.vbs anywhere you wish.
Since I have many different projects
in BlackBox (not only programming, writing papers and presentations too),
it is impossible to stay within a scheme where choosing the project
directory would not be a chore at least part of the time.

This is particularly convenient with an adapted (also simplified and
improved) version of Desktop that I use. I'll send it to Helmut Zinn at
some point in a not too distant future -- or provide it as is for those
willing to try it.

cheers
fyodor


' This script starts BlackBox in server mode,
' with this script's directory as working directory.
' Use:
' -- correct the value of prg below according to where your BlackBox is
installed,
' -- copy the corrected script into the would-be working directory,
' -- run it from there to start BlackBox in server mode in that directory.
' Note:
' Two double quotes in a row within a vbs string represent a single double
quote character.
' They are needed to allow paths containing spaces.
'----------------------------------------------
' Original author: Bernhard Treutwein BdT(at)wildwein de
' adapted by FVT 2008-12-19
'
Option Explicit
Dim prg
prg = """u:\blackbox15i21base.NEW\BlackBox.exe""" ' full path name of
BlackBox installation
Dim sh
Set sh = WScript.CreateObject("WScript.Shell")
sh.Run prg & " " & "/use """ & sh.CurrentDirectory & """", 1, false


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1087936797_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmM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1giIHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSH19
AENIP2I=
----boundary-LibPST-iamunique-1087936797_-_---
Received on Tue Apr 14 2009 - 18:58:24 UTC

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