PC Review


Reply
Thread Tools Rate Thread

Bonehead batchfile question

 
 
Al Dunbar
Guest
Posts: n/a
 
      3rd Oct 2003

"Mark V" <(E-Mail Removed)> wrote in message
news:Xns94073D4F181EBz9zzaQ2btw@207.46.248.16...
> Ritchie wrote in news:3f7a9e39$0$6633$(E-Mail Removed):
>
> > "guard" <^T^S^G^n^e^w^s^@TheSystemGuard.com> wrote in message
> > news:ble44v$bf4am$(E-Mail Removed)...
> >> The Mount/\Command "GetOS" provides the following:
> >> 1. Displays the current Operating System
> >> GetOS performs CONSISTENTLY under NT/2K/XP/K3. It is included in
> >> the FREE

> >
> > Since you mention it, %.GetOs% CONSISTENTLY fails to determine the
> > correct OS when the native command interpreter has been replaced.
> > For instance, on an NT4 machine using cmd.exe from 2000 or XP,
> > %.GetOs% returns '2K' and 'unknown' respectively.

>
> So much for "GetOS performs CONSISTENTLY under NT/2K/XP/K3" and
> "function identically across all supported platforms" ...
>
> Any more shinola to sell us "Guard"?


Heh. On the other hand, if it doesn't perform CONSISTENTLY, then that must
not be a supported platform.

/Al


 
Reply With Quote
 
 
 
 
Ritchie
Guest
Posts: n/a
 
      3rd Oct 2003
"Bill Stewart" <(E-Mail Removed)_spam.com> wrote in message news:u4B$(E-Mail Removed)...
> > the guard spammer wrote:
> >
> > > We do not have a record of your licensing any of our products.


Hey Evelyn, or whatever your name is, you sent me ntlib.cmd via
email about a year ago.

After I loaded it, I typed:-

set ""

Are now going to accuse me of reverse engineering? <g>

> I still think it's funny that they're selling batch files.


If you think that's funny, how about the idea of someone actually buying
them?

> broken PATH (how many times does the "how come I get 'bad command or file
> name' after typing commands?" question get asked in this group) is another.


I see what you're getting at, but it's not really relevant here. If a
machine is broken you can't assume it's more likely to succeed running
a script that relies on TPU's that a script that relies on built-in
utils.

> machines because they're research scientists or programmers. To use the
> "net config server" example, it would have problems on machines where
> file/printer sharing isn't installed, wouldn't it? My point is primarily


Did I say 'net config svr'? Make that 'net config work' <g> That seems
to work very well indeed, even without F&P.

> that Mr. Spammer's batch files would likely have a fairly significant
> failure rate in these kinds of environments, and potential users need to be
> aware of these kinds of possibilities.


That's right, where on earth do you start to debug such an obfuscated
batch file that is uncommented and uses undocumented features.

> That's the whole reason I wrote the osver.exe freeware tool. Quick, easy,
> even runs on Windows 9x. Plus, it's much faster than parsing textual output
> from another command.


I've nothing against TPU, I use them every day and even write my own from
time to time. Unfortunately it's just not always possible to install or make
these utils available to all machines, especially if the network belongs to
someone else, and understandably so.

In these situations it's handy to have at hand scripts that only rely on
built-in utils, blah blah...

IMHO, just one of the major shortcomings of the spammers product is that
a script now relies on a 'loaded library' which is akin to relying a on
TPU. And by definition of the spammers own admission, his product doesn't
do anything that can't already be done using the built-in tools.

--
Ritchie, undo for mail


 
Reply With Quote
 
Al Dunbar [MS-MVP]
Guest
Posts: n/a
 
      4th Oct 2003

"Ritchie" <(E-Mail Removed)> wrote in message
news:blja8c$ct9ph$(E-Mail Removed)...
> "Bill Stewart" <(E-Mail Removed)_spam.com> wrote in message

news:u4B$(E-Mail Removed)...
> > > the guard spammer wrote:
> > >
> > > > We do not have a record of your licensing any of our products.

>
> Hey Evelyn, or whatever your name is, you sent me ntlib.cmd via
> email about a year ago.
>
> After I loaded it, I typed:-
>
> set ""
>
> Are now going to accuse me of reverse engineering? <g>


LOL!

> > I still think it's funny that they're selling batch files.

>
> If you think that's funny, how about the idea of someone actually buying
> them?


Actually, I think it rather a shame. But hey, I have some .txt files I will
gladly sell to anyone with a couple of bucks to spare.

> > broken PATH (how many times does the "how come I get 'bad command or

file
> > name' after typing commands?" question get asked in this group) is

another.
>
> I see what you're getting at, but it's not really relevant here. If a
> machine is broken you can't assume it's more likely to succeed running
> a script that relies on TPU's that a script that relies on built-in
> utils.


In fact, one can assume anything, but then one reserves the right to be
wrong.

> > machines because they're research scientists or programmers. To use the
> > "net config server" example, it would have problems on machines where
> > file/printer sharing isn't installed, wouldn't it? My point is primarily

>
> Did I say 'net config svr'? Make that 'net config work' <g> That seems
> to work very well indeed, even without F&P.
>
> > that Mr. Spammer's batch files would likely have a fairly significant
> > failure rate in these kinds of environments, and potential users need to

be
> > aware of these kinds of possibilities.

>
> That's right, where on earth do you start to debug such an obfuscated
> batch file that is uncommented and uses undocumented features.


In fact, I think they rely somewhat heavily on Alchemy for some of the core
functions...

> > That's the whole reason I wrote the osver.exe freeware tool. Quick,

easy,
> > even runs on Windows 9x. Plus, it's much faster than parsing textual

output
> > from another command.

>
> I've nothing against TPU, I use them every day and even write my own from
> time to time. Unfortunately it's just not always possible to install or

make
> these utils available to all machines, especially if the network belongs

to
> someone else, and understandably so.
>
> In these situations it's handy to have at hand scripts that only rely on
> built-in utils, blah blah...


Certainly sounds safer than having at hand scripts that rely on *OTHER*
scripts that themselves only rely on built-in utils, especially when you
cannot feasibly read them to verify this fact, but must take the word of a
spammer.

> IMHO, just one of the major shortcomings of the spammers product is that
> a script now relies on a 'loaded library' which is akin to relying a on
> TPU. And by definition of the spammers own admission, his product doesn't
> do anything that can't already be done using the built-in tools.


Exactly. Of course, I believe he would claim that he has done the difficult
parts *for* his customers.

Mind you, when it comes time for that customer to write what would, for most
people, be a simple five-line batch script, seems to me he is likely to wind
up with a five line script that loads ntlib and then calls some of it. Might
be OK for some, but those would be the people who run spellchecker on
EVERYTHING they type, and possibly everything they receive.

/Al


 
Reply With Quote
 
Bill Stewart
Guest
Posts: n/a
 
      4th Oct 2003
Ritchie <(E-Mail Removed)> wrote:

>> I still think it's funny that they're selling batch files.

>
> If you think that's funny, how about the idea of someone actually buying
> them?


Quite sad, actually, since the potential customer may have a mess that he
is not qualified to fix, and will have to pay someone else to clean it up.

> I see what you're getting at, but it's not really relevant here. If a
> machine is broken you can't assume it's more likely to succeed running a
> script that relies on TPU's that a script that relies on built-in utils.


Well, that's true no matter what kind of program you run. I guess I was
trying to say that, in my experience, batch files are more likely to behave
unpredictably and fail in heterogeneous environments than other kinds of
programs.

> Did I say 'net config svr'? Make that 'net config work' <g> That seems
> to work very well indeed, even without F&P.


OK -- but does that also work on Win9x? :-)

> I've nothing against TPU, I use them every day and even write my own from
> time to time. Unfortunately it's just not always possible to install or
> make these utils available to all machines, especially if the network
> belongs to someone else, and understandably so.


I understand this and agree with the premise. It's not always feasible.
That's one of the reasons WSH scripts are quite useful also.

Bill


 
Reply With Quote
 
Ritchie
Guest
Posts: n/a
 
      4th Oct 2003
"Bill Stewart" <(E-Mail Removed)_spam.com> wrote in message news:(E-Mail Removed)...
> Well, that's true no matter what kind of program you run. I guess I was
> trying to say that, in my experience, batch files are more likely to behave
> unpredictably and fail in heterogeneous environments than other kinds of
> programs.


That's because bad batch files are so easy to write, bad EXE's aren't quite
so easy.

> OK -- but does that also work on Win9x? :-)


I very much doubt it. But then I honestly haven't seen a w9x/me box in a
work environment for at least three years. But may be I'm a bit fussy
about where I work <g>

> That's one of the reasons WSH scripts are quite useful also.


Yer, I really ought to make more of an effort to learn WSH/VBS.

--
Ritchie, undo for mail


 
Reply With Quote
 
Ritchie
Guest
Posts: n/a
 
      4th Oct 2003
"Al Dunbar [MS-MVP]" <Alan-no-Drub-(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> In fact, one can assume anything, but then one reserves the right to be
> wrong.


I thought you'd say that <g>

--
Ritchie, undo for mail


 
Reply With Quote
 
Roger Grossenbacher
Guest
Posts: n/a
 
      13th Sep 2004

"Mark V" <(E-Mail Removed)> wrote in message
news:Xns94073D4F181EBz9zzaQ2btw@207.46.248.16...
> Ritchie wrote in news:3f7a9e39$0$6633$(E-Mail Removed):
>
> > "guard" <^T^S^G^n^e^w^s^@TheSystemGuard.com> wrote in message
> > news:ble44v$bf4am$(E-Mail Removed)...
> >> The Mount/\Command "GetOS" provides the following:
> >> 1. Displays the current Operating System
> >> GetOS performs CONSISTENTLY under NT/2K/XP/K3. It is included in
> >> the FREE

> >
> > Since you mention it, %.GetOs% CONSISTENTLY fails to determine the
> > correct OS when the native command interpreter has been replaced.
> > For instance, on an NT4 machine using cmd.exe from 2000 or XP,
> > %.GetOs% returns '2K' and 'unknown' respectively.

>
> So much for "GetOS performs CONSISTENTLY under NT/2K/XP/K3" and
> "function identically across all supported platforms" ...
>
> Any more shinola to sell us "Guard"?


Heh. On the other hand, if it doesn't perform CONSISTENTLY, then that must
not be a supported platform.

/Al



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Batchfile substitution syntax question John Windows XP General 3 28th Apr 2010 09:03 PM
bonehead question =?Utf-8?B?Y2Q=?= Microsoft Windows 2000 3 1st Jun 2004 04:26 AM
Bonehead question =?Utf-8?B?TmljayBN?= Microsoft Access Macros 2 27th Mar 2004 08:24 AM
Bonehead batch file question Craig Microsoft Windows 2000 CMD Promt 7 23rd Oct 2003 06:26 PM
Re: Bonehead batch file question Bill Stewart Microsoft Windows 2000 CMD Promt 0 21st Oct 2003 11:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:20 AM.