N
Norman L. DeForest
On Fri, 5 Nov 2004, guard wrote:
[snip]
I know my OS. Since I wouldn't know one ServicePack from another if one
ran up to me an bit me on the leg, I wouldn't know what to do with the
information if I had it.
Set ekkodate=YYYYMMDD
wet ekkotime=HOMI
for %%f in ( foo*.txt ) do ekko ren "%%f" "$d_$t_%%f"$, >>fooyou.bat
call fooyou.bat
del fooyou.bat
To get EKKO.COM, see:
http://www.chebucto.ns.ca/~af380/Tips.html#Tip011
Or, using 4DOS, a one-liner typed at the command-line would do the job
(long line may warp with your newsreader):
for %f in ( foo*.txt ) do ren "%f" "%_year%@right[2,0%_month]%@right[2,0%_day]_%@right[2,0%_hour]%@right[2,0%_minute]_%f
My landlord had that problem with the furnace pipes in the building.
[snip]^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That's not cross-platform.
The Morris worm was cross-platform.
Writing a program that will compile correctly for a Linux box, a Windows
NT box, a Windows 95 box, a PC-DOS 3.3 machine, a Seiko running MP/M-86,
a Macintosh, a Texas Instruments Professional Computer and a VIC-20, now
*that* would really be cross-platform. (OK, you can leave out the VIC-20.)
[snip]
.... starting with knowing how to pick the right free Linux or Un*x distro.
If *anyone* else's environment is even remotely similar to mine
then I offer them my sincerest condolences.
I try to be helpful by offering the links here:
http://www.chebucto.ns.ca/~af380/Antispam.html#NOMEXU
[snip]
That's not cross-platform. (See above.)
And, if your solution is for NT systems only then it may be
appropriate for alt.msdos.batch.nt but not for alt.msdos.batch
(but I think you have been told this before).
Mine is optimized for lynx. My protest pages that I replace my
home page with from time to time are *pessimized* for graphical
browsers. A sample[1]:
I'm Sorry, this page requires a NOFRAMES capable browser.
Download Lynx Here!
Extensions? Do you mean like CoolWebSearch or some other trojan or
browser hijacker of the week? Without the permission of the user?
Additional functionality includes redirecting the browser to porn sites,
stealing user passwords and email addresses from the user's computer and
relaying spam for porn and mortgage merchants half a continent away.
Anyone still using IE is either ignorant of the risks, extremely stupid,
or suffers from rules made by others who are ignorant or extremely stupid.
(Being ignorant is not bad. Insisting on remaining so after rejecting
clues that would cure that ignorance *is*.)
How is it better than 4DOS?
[snip]
But I don't use NT. If I did, I would be in alt.msdos.batch.nt
and not in alt.msdos.batch. Why post this to alt.msdos.batch?
(I believe you have been asked this before.)
[1] My protest pages are linked to on my home page. See sig. They
are designed to be hostile for graphical browser users the same
way that badly-designed sites are hostile for text browser users.
[snip]
But there are also significant numbers of SysAdmins
around the world that use only the Completely FREE
Advanced Library and our other FREE tools to help
avoid fuming. And they also enjoy great success!
Many of the most frequent "Syntax Ditches" are
bridged in the Advanced Library. For example:
Determining the current OS and ServicePack
I know my OS. Since I wouldn't know one ServicePack from another if one
ran up to me an bit me on the leg, I wouldn't know what to do with the
information if I had it.
Renaming a file to the current date/time
Set ekkodate=YYYYMMDD
wet ekkotime=HOMI
for %%f in ( foo*.txt ) do ekko ren "%%f" "$d_$t_%%f"$, >>fooyou.bat
call fooyou.bat
del fooyou.bat
To get EKKO.COM, see:
http://www.chebucto.ns.ca/~af380/Tips.html#Tip011
Or, using 4DOS, a one-liner typed at the command-line would do the job
(long line may warp with your newsreader):
for %f in ( foo*.txt ) do ren "%f" "%_year%@right[2,0%_month]%@right[2,0%_day]_%@right[2,0%_hour]%@right[2,0%_minute]_%f
Overcoming problems with delayed expansion
My landlord had that problem with the furnace pipes in the building.
[snip]^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That's not cross-platform.
The Morris worm was cross-platform.
Writing a program that will compile correctly for a Linux box, a Windows
NT box, a Windows 95 box, a PC-DOS 3.3 machine, a Seiko running MP/M-86,
a Macintosh, a Texas Instruments Professional Computer and a VIC-20, now
*that* would really be cross-platform. (OK, you can leave out the VIC-20.)
[snip]
Most, but not all, SysAdmins would like to learn more about
automating repetitive tasks through scripting. But having
the time to actually learn is not a given. A great many
are also wearing many other hats, given the responsibility
for System Administration, without being given the tools,
time and training to do the job. And, finally, there are
a great many other skills necessary for good System
Administration, besides coding scripts.
.... starting with knowing how to pick the right free Linux or Un*x distro.
The working environment that is typical for the extremely
limited group of active posters and answerers to a worldwide
Internet Newsgroup is NOT AT ALL SIMILAR to the daily
trials experienced by those who read the group but never
If *anyone* else's environment is even remotely similar to mine
then I offer them my sincerest condolences.
ask anything for fear of being publicly humiliated if
they didn't "Google" properly before asking their question.
I try to be helpful by offering the links here:
http://www.chebucto.ns.ca/~af380/Antispam.html#NOMEXU
[snip]
What makes shell scripting the platform of choice
is it's pervasiveness. The simple truth that a
well-documented cross-platform shell script will
run on ANY NT-based system, right out of the box,
is a very powerful reason for solving problems
this way.
That's not cross-platform. (See above.)
And, if your solution is for NT systems only then it may be
appropriate for alt.msdos.batch.nt but not for alt.msdos.batch
(but I think you have been told this before).
This is similar to the fact that most web sites are
written to be optimally viewed with Internet Explorer.
Mine is optimized for lynx. My protest pages that I replace my
home page with from time to time are *pessimized* for graphical
browsers. A sample[1]:
I'm Sorry, this page requires a NOFRAMES capable browser.
Download Lynx Here!
There are better browsing platforms, but none that is
present on so many different systems. An extension
to IE that provides additional functionality is often
more likely to be used rather than changing an entire
organization to a new browser.
Extensions? Do you mean like CoolWebSearch or some other trojan or
browser hijacker of the week? Without the permission of the user?
Additional functionality includes redirecting the browser to porn sites,
stealing user passwords and email addresses from the user's computer and
relaying spam for porn and mortgage merchants half a continent away.
Anyone still using IE is either ignorant of the risks, extremely stupid,
or suffers from rules made by others who are ignorant or extremely stupid.
(Being ignorant is not bad. Insisting on remaining so after rejecting
clues that would cure that ignorance *is*.)
The Command Library builds on the existing software
base (Cmd.exe and it's associated utilities) and the
prevailing knowledge base (basic batch file skills)
without requiring new tools or new skill sets. Code
that is written using the library is self-documenting
and easily maintained, even by those with limited
knowledge and/or time.
With our Sure Foundation, we are, one by one, replacing
the need for a toolbox full of small .exe utilities with
A SINGLE .cmd FILE that provides the same features in a
CONSISTENT format.
How is it better than 4DOS?
[snip]
400+ command-line resources using ONLY native NT commands!
(http://TheSystemGuard.com/defaut.asp#MasterCommandList
But I don't use NT. If I did, I would be in alt.msdos.batch.nt
and not in alt.msdos.batch. Why post this to alt.msdos.batch?
(I believe you have been asked this before.)
[1] My protest pages are linked to on my home page. See sig. They
are designed to be hostile for graphical browser users the same
way that badly-designed sites are hostile for text browser users.