Entry
TSE: Process: Parallel: How to let TSE run 'parallel' instead of serial?
TSE: Using TSE to superseed your hyperlink browser
TSE: Creating Q&A databases (text wizards)
TSE: Creating shortcuts via Windows Script Hosting language (WSH)
Mar 24th, 2005 07:49
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 17 March 2002 - 03:35 am ----------------------
TSE: Process: Parallel: How to let TSE run 'parallel' instead of
serial?
---
TSE: Using TSE to superseed your hyperlink browser
---
TSE: Creating Q&A databases (text wizards)
---
TSE: Creating shortcuts via Windows Script Hosting language (WSH)
---
Computer: Wordprocessor: TSE: Process: 'Parallel': How to let TSE run
'parallel' processes instead of serial (where you have to wait or close
the current program to run the next program)?
---
In Windows shortcut programs can run 'parallel'.
You can e.g. create shortcuts using Windows Scripting Host (=WSH).
So a possible solution solution is letting TSE create this commands,
written in JScript (or VBScript), by writing text to a file with the
extension .js
Then you call the Windows Scripting Host interpreter with this text
file.
e.g.
cscript.exe myscriptfile.js
which in TSE, for example, becomes:
Dos( "cscript.exe myscriptfile.js", _DONT_PROMPT_ )
---
You can get the feeling for this idea, by creating a few shortcuts
(e.g. starting your Windows Explorer). This files have the
extension .lnk
If you then on the MSDOS command line type the command:
<myshortcutfilename>.lnk
you see that this runs just like a usual .exe, .com, or .bat file.
But they can run in parallel. So they are not waiting for one another.
---
If you e.g. use TSE v2.5 on Windows 2000 to run .exe via START or
Dos() you should have most of the time a serial process, where the next
program has to wait until the current is ready.
By creating shortcuts for each of the executables you want to run they
all start independent of each other.
---
I use this idea to let all kind of programs start via TSE (like URLs
where I click on with the mouse in a text file, .mac macro names where
I
click on in a text file (and via this TSE macro you can
run .exe, .com, .bat,
.lnk, ... executable programs), going to files in UNC paths like
\\myserver\mycomputer\mypath by clicking on it. If you let TSE give all
these links specific colors, like red for URLs, yellow for .mac, green
for
e-mail addresses, white for UNCs (by adapting this colors e.g. via the
COLORS.S macro), then TSE is your own personal hyperlink, program and
command processor, which superseeds your browser and other external
programs).
If you write these links underneath each other,
like
Now run macro 1:
mymacroname1.mac
Now run macro 2:
mymacroname2.mac
Now run macro 3:
mymacroname3.mac
Now run URL 1:
http://www.semware.com
Now run URL 2:
http://www.knud.info
Now goto file 1:
\\myserver1\mycomputer1\mypath1
Now goto file 2:
\\myserver1\mycomputer1\mypath2
in e.g. Question&Answer
text file databases, like I use for all topics (e.g. TSE, C++,
Java, JavaScript, ..., mathematics, calculus, ...,
dictionaries for natural languages, ...),
you can so easily build sophisticated text based wizards, into your
text databases, which you all control via your TSE
(which remains open in a central console, such that you can see and
check
the steps, and read additional information about what you are doing,
and
going to do next. One of the advantages is the easyness with which you
can
make changes, just by editing this text directly in TSE, where you
have all
its powerful text editing possibilities (via menus, keyboard shortcuts,
macros, ..., at your fingertips).
---
---
Book: see also:
---
[book: see also: Esposito, Dino - Windows Script Host (programmer's
reference) - ISBN 1-861002-65-3 - p. 88 'Creating shortcuts']
---
---
Internet: see also:
---
Windows Scripting Host language
[Internet: see also: http://www.itp-
journals.com/Windows_scripting_host_page1.htm]
---
Computer: Editor: TSE: Process: Serial/Parallel: Overview: Can you
give an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/34742/fid/903
----------------------------------------------------------------------