Time: Fri Oct 24 10:09:40 1997
by primenet.com (8.8.5/8.8.5) with ESMTP id JAA05868
for [address in tool bar]; Fri, 24 Oct 1997 09:55:12 -0700 (MST)
Date: Fri, 24 Oct 1997 09:49:21 -0700
To: pmitch@primenet.com
From: Paul Andrew Mitchell [address in toolbar]
Subject: SLL: need STRING routine for DOS command processing
Dear Team SL:
I need a string function or program
which can parse a DOS file name,
and return the filename (prefix portion),
without the dot (".") and without the
extension (or "suffix" as I call it).
I am used to having an operating system
with this kind of command language.
Evidently, Win95 does not support such
a capability.
It may utilize an environment variable,
but then I would also need a program
or function to pull the value of
a specific environment variable from
the DOS environment list.
For example:
SET PREFIX = NO_SUFFIX(%1)
where,
%1 is a batch variable which is
passed into the batch program,
containing a DOS filename, like
JUDNOT01.ASC
The result is:
PREFIX = "JUDNOT01"
This will allow the same batch program to
append a different suffix, and dot, to
this PREFIX, e.g.
COPY SLL\PROLOG.HTM + %1 + SLL\EPILOG.HTM %PREFIX.HTM
This latter command concatenates PROLOG.HTM, JUDNOT01.ASC,
and EPILOG.HTM, and writes the concatenated result to
the output file JUDNOT01.HTM.
This will save a lot of edits upon the full list of
DOS filenames which end in .ASC in any given directory.
Any and all help will be most appreciated.
/s/ Paul Mitchell
http://supremelaw.com
===========================================================================
Paul Andrew Mitchell, Sui Juris : Counselor at Law, federal witness 01
B.A.: Political Science, UCLA; M.S.: Public Administration, U.C.Irvine 02
tel: (520) 320-1514: machine; fax: (520) 320-1256: 24-hour/day-night 03
email: [address in toolbar] : using Eudora Pro 3.0.3 on 586 CPU 04
website: http://supremelaw.com : visit the Supreme Law Library now 05
ship to: c/o 2509 N. Campbell, #1776 : this is free speech, at its best 06
Tucson, Arizona state : state zone, not the federal zone 07
Postal Zone 85719/tdc : USPS delays first class w/o this 08
_____________________________________: Law is authority in written words 09
As agents of the Most High, we came here to establish justice. We shall 10
not leave, until our mission is accomplished and justice reigns eternal. 11
======================================================================== 12
[This text formatted on-screen in Courier 10, non-proportional spacing.] 13
Return to Table of Contents for
Supreme Law School: E-mail