script Works from DOS but not from VBScript/ASP 
Author Message
 script Works from DOS but not from VBScript/ASP

The code below  calls a command file px_wb_fc.cmd .All this .cmd does is go
to the correct directory and runs  .exe that converts a basic program to
c++. The caller pipes the output to a file taht is later displayed in the
browser.

It works on NT 4 , IIs 4. fails on win2000 machines.

Any one any ideas ? What has changed in IIS 5/ Shell ?

The problem is the .exe which uses tcp/ip to talk to a data dictionary fails
to load. Something to do with name spaces I think.

set shell = CreateObject("WScript.Shell")
strcmd = "%comspec% /c %phx_dev_root%\wb\px_wb_fc.cmd " & program & " "&
module & " " & driveLetter & " " & fullpath & "> " & OutFile

shell.Run strcmd, 9, True



Mon, 05 May 2003 03:00:00 GMT  
 script Works from DOS but not from VBScript/ASP
Fails? How? Wait a minute, your subject line seems to give a different
scenario from your text below. Maybe you should specify more clearly exactly
what environments you are trying this in.

/Al

Quote:

> The code below  calls a command file px_wb_fc.cmd .All this .cmd does is
go
> to the correct directory and runs  .exe that converts a basic program to
> c++. The caller pipes the output to a file taht is later displayed in the
> browser.

> It works on NT 4 , IIs 4. fails on win2000 machines.

> Any one any ideas ? What has changed in IIS 5/ Shell ?

> The problem is the .exe which uses tcp/ip to talk to a data dictionary
fails
> to load. Something to do with name spaces I think.

> set shell = CreateObject("WScript.Shell")
> strcmd = "%comspec% /c %phx_dev_root%\wb\px_wb_fc.cmd " & program & " "&
> module & " " & driveLetter & " " & fullpath & "> " & OutFile

> shell.Run strcmd, 9, True



Mon, 05 May 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ASP/vbscript works on NT4 but not on win2000

2. ASP - VBSCRIPT ENCODE DOES NOT WORK

3. VBscript in ASP not working, but command line does

4. asp using vbscript not working

5. VBScript works in ASP but not WSH

6. VbCr not working in ASP Email Script

7. SenKeys to a Dos window not working

8. ActiveX Events in JScript Not Working (VBScript Works Fine)

9. Should scripts that work with WSH also work on an ASP?d

10. Valid script does not work with Scripting Object Model

11. Valid script does not work with Scripting Object Model

12. New To Scripting and Script does not work

 

 
Powered by phpBB® Forum Software