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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run command in S87 will not work with iexplore.exe

Status
Not open for further replies.

Tipiford

Programmer
Feb 9, 2010
6
US
Using Summer '87 in XP I can run a test file from a batch file (ie.bat) which contains the following lines:

@echo off
convert.exe

and this will pull-up the convert.exe program, however, substituting ixplore.exe (with the correct paths, of course) gives me a 'bad command' in my application. I've tried using @start, start, @call, call, and have circumvented the batch file using these commands directly from the app, and still get the 'bad command' error wirh iexplore.exe, but not with my test file, convert.exe.

Has anyone experienced this issue, and if so, did you find a solution?
 
batch file content

"C:\Program Files\Internet Explorer\IExplore.exe"

Include the quotes at the DOS prompt

Ali Koumaiha
TeknoSoft Inc.
Michigan
 
We've tried this, and also moving iexplore.exe into the default path where we have the test file convert.exe. Ironically, convert.exe works from the batch file only, WITHOUT the quotes. Iexplore.exe will not work with or without the quotes, whether or not using the path to program Files or pathing to the default area.
 
Have you tried running the batch file outside of the application - i.e. let it write the file and then type the contents at the dos prompt?

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Yes, the batch file runs perfectly outside of the application.
 
Can you put a 'pause' in the batch file and a message?

Code:
@echo off
echo Hi, got this far
pause

And see if the batch file is being called correctly

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
The code you suggest works in the app, but including iexplore.exe gives the bad coomand or file name error. The code:

@echo off
echo Hi, got this far
pause
convert.exe

works as written, printing the echo and pausing, then runs the Convert program after tapping a key, but:

@echo off
echo Hi, got this far
pause
iexplore.exe

works up thru the pause, then gives the bad command error.

 
try this:
Code:
@echo off
echo Hi, got this far
pause
"c:\program files\internet explorer\iexplore"
[/code

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Oops missed off a ]

Code:
@echo off
echo Hi, got this far
pause
"c:\program files\internet explorer\iexplore"

Alternatively, copy iexplore.exe into the same folder as convert.exe

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
I took your meaning, thanx, but as I stated in an earlier post, the program will not accept quotes. In other words,

@echo off
"convert.exe"

will work from the command line, but not from the app,

@echo off
convert.exe

will work from the app (or the command line; the only need for the quotes is to handle the spaces in the command).

From the app, using a batch file or as a direct command, iexplore.exe gives the bad command with or without quotes.

 
In that case I would suggest that yu try copying iexplore.exe to the same folder as convert.exe is.


That way it should be 'found'.

I would also check that the batch file actually contains the quotations that surround the path to the .exe

Another idea would be to do this:

Code:
@echo off
c:
cd \
cd "program files"
cd "internet explorer"
iexplore

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
OK, what about this:
I have tested this batch file in Win XP and it works:
Code:
@echo off
cls
echo tst.bat begins
rem Check which command interpreter is invoked
ver
pause
cmd /c "start c:\progra~1\intern~1\iexplore.exe"
pause

What's happening is S'87 invokes command.com rather than cmd.exe on a run command and start does not work properly there, nor do long path names, even in quotes.

However invoking cmd with a parameter seems to work ok though depending how much free DOS memory you have may cause problems with this scenario if your S'87 program is large.

Jock
 
Thanx, JockMullin, it was the Command.com that was at issue. I inserted the cmd.exe and the app is running as expected. Good Work,Sir!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top