Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Aspexec doesn't run 16 bit apps

Status
Not open for further replies.

IMTIDoug

Programmer
Jan 20, 2007
2
US
I have 9 supposedly identically configured W2K servers.

On one of them ASPExec stopped executing 16 bits apps, including batch files. Executes 32bit apps in same or different directory no problem.

I could have sworn the feature that stopped working was tested and working when installed. Process works just fine in development server.

On errant server, have given aspexec.dll and cmd.exe full control with IWAM_ and IUSR_whatever id's. See thread333-1171593.

Does anyone know why this happens?

code sample:
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "L:\WebsiteDir\temp.bat"
Executor.Parameters = AppParam
Executor.ShowWindow = True
strResult = Executor.ExecuteWinAppAndWait
or
strResult = Executor.ExecuteWinApp
or
strResult = Executor.ExecuteDosApp (which never worked for me anyway)

16 bit app now returns error code 5, instead of 258 (the normal "it worked" code). I think 5 is permission denied, however I'm not sure.

 
First of all 16 bit apps are not supported on windows 2000 server. They run but mostly incorrectly. Windows 2000 is nothing like the older versions and only runs 16 apps due to the ability to kind of mimic the env. If you had this working prior then I'm sure it's something to do with the box's configuration. Be it windows updates or a third party update or change even down to snmp services.

I would start debugging your server if this functions correctly in the correct environment. There is a win 2K forum that may be able to assist you.

btw...I'm not a die hard fan of MS. I come from an AS400 world. This one is just common sense that you have to move forward with technological changes that help our environments be more stable. Even in UX, Linux etc...old things stop working after so long ;-)

[sub]____________ signature below ______________
The worst mistake you'll ever make is to do something simply the way you know how while ignoring the way it should be done[/sub]
 
Thank you for your response.

I have almost finished rewriting app as 32 bit. However a fair number of functions on my servers have been implemented in batch files, I am concerned if the problem spreads to the other servers.
 
If you server people follow suit on configuration changes then I'm sure it will. If you trouble shoot it down to something like updates then it's a given you'll see the problems spread. You'll need to find the problem in the configuration in order to prevent or be proactive against it happening again though. Sometimes that can be difficult if the people that manage the servers are reluctant to cooperate.

[sub]____________ signature below ______________
The worst mistake you'll ever make is to do something simply the way you know how while ignoring the way it should be done[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top