Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computer Certification > MCSE > OT: Wednesday WTF

Reply
Thread Tools

OT: Wednesday WTF

 
 
FrisbeeŽ
Guest
Posts: n/a
 
      02-22-2006
My batch mystery solved, thanks to some tech-heads over at GRC (Gibson
Research) newsgroups.

Turns out that while I -thought- that the desktop shortcut was running
CMD.EXE, it was actually running COMMAND.COM - big difference, especially in
the way it handles long file names, especially when those long filenames
contain embedded spaces.

Back in the early winders/dos days, we had to modify config.sys to expand
the default environment size, since our batch files used extensive
environment variables. The way to do that was to specify a
shell=command.com with an /e switch to increas the environment size. This
held over in the move to Win 2k/XP and we never really gave it much thought,
but that meant that all command prompts were NOT running CMD.EXE, hence the
problem.

Solution: REMmed out the shell= line, and BINGO, DOS apps still work, and
now the batch file works from command prompt, from shortcut, and when called
from within a 16-bit Windows app.

I'm sure this tid-bit will be very useful for each and every one of you.


 
Reply With Quote
 
 
 
 
Briscobar
Guest
Posts: n/a
 
      02-22-2006
FrisbeeŽ <> rambled:
>
> I'm sure this tid-bit will be very useful for each and every one of
> you.


So what you're saying is that COMMAND.COM is useless and can and should be
deleted from all my workstations? Thanks, Fris!

--
KB

MCNGP #26
Sometimes, I feel that www.mcngp.com isn't treating me with the respect
I deserve.


 
Reply With Quote
 
 
 
 
kpg
Guest
Posts: n/a
 
      02-23-2006
FrisbeeŽ <> said something like

> Turns out that while I -thought- that the desktop shortcut was running
> CMD.EXE, it was actually running COMMAND.COM - big difference,


FOUL. No Fair. You cheated. I quit.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Re: Wednesday WTF Pedro Simoes MCSE 0 11-24-2005 07:18 PM
Re: Wednesday WTF Pedro Simoes MCSE 0 11-24-2005 07:18 PM
Re: Wednesday WTF Pedro Simoes MCSE 0 11-24-2005 07:18 PM
Re: Wednesday WTF Pedro Simoes MCSE 0 11-24-2005 07:18 PM
OT: Wednesday WTF CBIC MCSE 14 11-17-2005 04:34 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57