Page 2 of 2 <12
Topic Options
#126361 - 2004-09-09 05:24 PM Re: Problem with shell command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sorry if this has been asked/answered already, but is the cmd.exe version same on failing and working system?
(didn't see the answer for the SP q either, might have missed it though...)
_________________________
!

download KiXnet

Top
#126362 - 2004-09-09 05:32 PM Re: Problem with shell command
Louie Offline
Fresh Scripter

Registered: 2004-09-09
Posts: 12
Quote:

sorry if this has been asked/answered already, but is the cmd.exe version same on failing and working system?
(didn't see the answer for the SP q either, might have missed it though...)




I started comparing the "bad" system with a "good" one. Both are WinNT 4.0 SP6a. They had different versions of CMD.EXE, though:

Bad: 4.0.1381.273
Good: 4.0.1381.7086

I copied the good system's CMD.EXE to the bad one, overwriting it, and tried the same script (which works on the "good" one just fine). Same thing as before (@ERROR of 255 and no output). I put the "bad" CMD.EXE back on the "bad" system after I was done so I can keep things straight.

So there's still something I'm missing, but it feels like we're getting closer.

Top
#126363 - 2004-09-09 05:40 PM Re: Problem with shell command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
next question would be.
what's the version of shell32.dll on the systems?
_________________________
!

download KiXnet

Top
#126364 - 2004-09-09 05:40 PM Re: Problem with shell command
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I have just tried the following code in a test script on my W2K SP4 laptop. All worked as expected and produced the output as expected. I ran KiXtart version 4.02 and 4.22 froma DOS windows interactively.

Code:
Break ON

shell '%COMSPEC% /C net start > services.txt'
exit 1


Code:
Break ON

shell '%COMSPEC% /C net start >services.txt'
exit 1



This code output to the screen. What do you get without redirection?
Code:
Break ON

shell '%COMSPEC% /C net start'
exit 1



[edit]
I see you have supplied OS info and have some that work and other that don't. This definitely seems to be specific to files versions. Good luck is resolving this. Sorry I can't be of assistance as I have no nt4 here.
[/edit]


Edited by Howard Bullock (2004-09-09 05:45 PM)
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#126365 - 2004-09-09 06:23 PM Re: Problem with shell command
Louie Offline
Fresh Scripter

Registered: 2004-09-09
Posts: 12
Quote:

next question would be.
what's the version of shell32.dll on the systems?




Bad: 4.0.1381.332
Good: 4.72.3812.600

Top
#126366 - 2004-09-09 06:25 PM Re: Problem with shell command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, at least bad is missing the Shell update (included in IE4 original)...
boys, isn't it downloadable somewhere?
_________________________
!

download KiXnet

Top
#126367 - 2004-09-09 07:02 PM Re: Problem with shell command
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
hmmm,

shell32.dll Version: 4.0.1381.332

Products containing this version:

Windows NT 4.0 SP6
Windows NT 4.0 SP6a

shell32.dll Version: 4.72.3812.600

Products containing this version:

[can't seem to find this one listed anywhere, closest one is]

4.72.3612.1700

but looking at the product list, this comes with just about every MS product you can imagine ... question is (i guess) why are these bad machines so out-of-date ?

Top
#126368 - 2004-09-09 07:42 PM Re: Problem with shell command
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
What does running WINVER show?

Do you need to update or re-apply your Service Pack 6a ?

Top
#126369 - 2004-09-09 07:59 PM Re: Problem with shell command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shawn, 4.72 is dependant of shell-upgrade.
it does not come with any OS pre-installed, iirc.

on the other hand, you can install all the latest updates you can find but still have the 4.0 if you can't get your hands on shell-upgrade package or the original 100MB IE4 installer which included it.
_________________________
!

download KiXnet

Top
#126370 - 2004-09-09 08:09 PM Re: Problem with shell command
Louie Offline
Fresh Scripter

Registered: 2004-09-09
Posts: 12
Quote:

What does running WINVER show?

Do you need to update or re-apply your Service Pack 6a ?




Microsoft Windows NT Workstation
4.0.1381 Service Pack 6 Build 1381

I'll look at the SP6a files and see what its version of shell32.dll looks like.

Top
#126371 - 2004-09-09 08:34 PM Re: Problem with shell command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
go ahead and don't trust.
_________________________
!

download KiXnet

Top
#126372 - 2004-09-09 08:38 PM Re: Problem with shell command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
found this nice "enchangement site" though:
http://www.deviantart.com/deviation/8035077/

_________________________
!

download KiXnet

Top
#126373 - 2004-09-09 08:44 PM Re: Problem with shell command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
to go back to correct topic, check this listing:
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/versions.asp?frame=true

Quote:

Note 2: All systems with Internet Explorer 4.0 or 4.01 will have the associated version of Comctl32.dll and Shlwapi.dll (4.71 or 4.72, respectively). However, for systems prior to Windows 98, Internet Explorer 4.0 and 4.01 can be installed with or without the integrated Shell. If they are installed with the integrated Shell, the associated version of Shell32.dll will be installed. If they are installed without the integrated Shell, Shell32.dll is not updated. No other versions of Internet Explorer update Shell32.dll. In other words, the presence of version 4.71 or 4.72 of Comctl32.dll or Shlwapi.dll on a system does not guarantee that Shell32.dll has the same version number. All Windows 98 systems have version 4.72 of Shell32.dll.




_________________________
!

download KiXnet

Top
#126374 - 2004-09-09 08:55 PM Re: Problem with shell command
Louie Offline
Fresh Scripter

Registered: 2004-09-09
Posts: 12
Quote:

hmmm,

shell32.dll Version: 4.0.1381.332

Products containing this version:

Windows NT 4.0 SP6
Windows NT 4.0 SP6a

shell32.dll Version: 4.72.3812.600

Products containing this version:

[can't seem to find this one listed anywhere, closest one is]

4.72.3612.1700

but looking at the product list, this comes with just about every MS product you can imagine ... question is (i guess) why are these bad machines so out-of-date ?




I found these versions in SP6a and Q299444i (post SP6a security update):

SP6a: 4.0.1381.332
Q299444i: 4.0.1381.7086

I'll look around and see if I can find a system with the same version of shell32.dll/cmd.exe that works and continue from there.

Top
#126375 - 2004-09-13 04:33 PM Re: Problem with shell command
Louie Offline
Fresh Scripter

Registered: 2004-09-09
Posts: 12
The problem looks like it's related to the absence of the Post-Windows NT 4.0 Service Pack 6a Security Rollup Package (see KB article 299444) from affected machines. Over 20K have it, and I'm having no problems running the command on them, but around 10K don't and they're the ones with the issue.

Thank you all for helping me work through this!

Top
Page 2 of 2 <12


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.071 seconds in which 0.029 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org