Hello Jorj,
\|/ Subject: hiding error messages
/|\ On Tuesday April 07 1998 at 22:57,
you wrote to Gerald Miller saying:
GM>> iff exist %trash% .and. exist %info% then^
GM>> attrib /q +r %info%
GM>> del /q/z %trash%
GM>> attrib /q -r %info%
GM>> return
GM>> elseiff exist %trash% .and. not exist %info% then^
GM>> del /q/z %trash%
GM>> return
GM>> elseiff not exist %trash% then^return
GM>> endiff
JS> I admit I haven't been following the discussion, I just
JS> commented upon a short bit, but isn't this all horridly long?
JS> You want to quietly delete %trash%, and, for reasons that
JS> utterly escape me, make %info% temporarily read-only. (It can't
JS> be to protect it from getting swept up in the %trash% deletion,
JS> since the /z would get it, anyway.) Assuming both the variables
JS> are each a filename, wouldn't one line do it all?
%info is a variable name for the DESCRIPT.ION file (I do not wish to have the
description for %trash deleted when I delete %trash because the file will be
placed in the directory again). %trash is a variable name for Thunder Byte's
Anti-vir.dat file, which I have to remove when I use McAfee's scan program to
add validation code to executable files, otherwise Thunder Byte makes a lot
of noise the next time it runs and the Anti-vir.dat file has not been updated
to reflect the added validation code.
JS> del /eqz /[!%info] %trash
JS> "Delete %trash. If it's not there to delete, don't tell me
JS> about it. And definitely don't bother %info."
Given the long winded information above, is it clear now?
JS> With 4DOS, you don't need the terminal %.
Thank you. I will delete the extraneous "%" characters.
JS> And in your long version, you don't need the ^ at the end of the
JS> lines.
The "^" characters are likewise gone...
JS> And, no, you don't need any parentheses, either.
Thank you, because I was not sure about the parentheses, I had to ask. I
don't have to remove them because they don't exist in the file. :-))
G'Day ... Gerald
--- GoldED/386 3.00.Beta2 UNREG
---------------
* Origin: It's Miller Time! (1:10295/6)
|