4NT Error when running 'system' from a program to execute a .BTM

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
Hello !

I have a program that issues a kind of a system call, to launch an external BTM. Let's call this program the "A" program.

The program waits for the results of this BTM. This BTM on it's turn, will run another program , which is a Cobol compiler. This is the "B" program.

This worked fine but, since I migrated to another machine and reinstalled 4NT, I'm having an error when the first program, that is, the "A" program.

This problem never happened before.

I wonder if I have made something wrong on my installation here...

A screen shot of the error you can get attached.

Any suggestion ? Have you ever faced this problem ? Is this error screen coming up from 4NT itself or from Windows ?

Thanks in advance !
 

rconn

Administrator
Staff member
May 14, 2008
10,101
85
#2
Hello !

I have a program that issues a kind of a system call, to launch an external BTM. Let's call this program the "A" program.

The program waits for the results of this BTM. This BTM on it's turn, will run another program , which is a Cobol compiler. This is the "B" program.

This worked fine but, since I migrated to another machine and reinstalled 4NT, I'm having an error when the first program, that is, the "A" program.

This problem never happened before.

I wonder if I have made something wrong on my installation here...

A screen shot of the error you can get attached.

Any suggestion ? Have you ever faced this problem ? Is this error screen coming up from 4NT itself or from Windows ?

Thanks in advance !
There wasn't any screen shot attached, so it's difficult to diagnose your problem.

At a guess, I'd recommend checking your PATHEXT setting and contents, to ensure that 4NT will execute .BTM files. (The default Windows PATHEXT does not include .BTM.) Also, make sure that the .BTM extension is associated with 4NT -- type "assoc .BTM" and see what it returns.

If that doesn't work, email me the screenshot directly to support@jpsoft.com.
 
#3
There wasn't any screen shot attached, so it's difficult to diagnose your problem.
Sorry. Emailed directly to you...

At a guess, I'd recommend checking your PATHEXT setting and contents, to ensure that 4NT will execute .BTM files. (The default Windows PATHEXT does not include .BTM.) Also, make sure that the .BTM extension is associated with 4NT -- type "assoc .BTM" and see what it returns.
ASSOC .BTM :

.btm=batfile


If that doesn't work, email me the screenshot directly to support@jpsoft.com.
 
#4
FTYPE batfile :

BATFILE=c:\4nt\4nt.exe "%1" %*

PATHEXT :

.BTM;.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

On Windows Explorer, when I double click on a .BTM file, it launches 4NT correctly. Also, inside this BTM file there are specific commands, such as DELAY, that are interpreted currectly. Thus, the BTM was ran under 4NT of course.

I guess we have another type or problem, of conflict.

Thanks !