INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Run command in S87 will not work with iexplore.exe

Run command in S87 will not work with iexplore.exe

(OP)
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?
 

RE: Run command in S87 will not work with iexplore.exe

batch file content

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

Include the quotes at the DOS prompt

Ali Koumaiha
TeknoSoft Inc.
Michigan

RE: Run command in S87 will not work with iexplore.exe

(OP)
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.

RE: Run command in S87 will not work with iexplore.exe

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 Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

RE: Run command in S87 will not work with iexplore.exe

(OP)
Yes, the batch file runs perfectly outside of the application.  

RE: Run command in S87 will not work with iexplore.exe

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 Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

RE: Run command in S87 will not work with iexplore.exe

(OP)
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.

 

RE: Run command in S87 will not work with iexplore.exe

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

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

RE: Run command in S87 will not work with iexplore.exe

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 Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

RE: Run command in S87 will not work with iexplore.exe

(OP)
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.

 

RE: Run command in S87 will not work with iexplore.exe

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 Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

RE: Run command in S87 will not work with iexplore.exe

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
 

RE: Run command in S87 will not work with iexplore.exe

(OP)
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!

RE: Run command in S87 will not work with iexplore.exe

Hi Tipiford

You're welcome, glad it worked out.

Jock

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close