how to determine which program will execute a file

Jun 3, 2008
Temecula, CA
A variation of this came up in a previous thread from a month or two ago, but I've now run into this same problem in a different light. I've got a vbscript file, IsmInfo.vbc, that I want to execute. I'm running in a TCC.exe (64-bit) window on Windows 7-64. I don't understand what determines where it finds the executable program to run.

->which isminfo
isminfo is an executable extension : C:\Windows\system32\cscript.exe /nologo c:\Utils\IsmInfo.vbc
->assoc .vbc
->ftype vbcfile
vbcfile=C:\Windows\SysWow64\CScript.exe /nologo "%1" %*
->set pathext

I've even searched my registry to see if I could figure out why it's picking the system32 version instead of the syswow64 version, and nothing I see there tells me anything.

Another interesting tidbit is that if I start up cmd.exe, whether the 32-bit or 64-bit version (using the Windows Run... option of course), both of them run the 32-bit (syswow64) version of cscript.exe.

Just in case there was any doubt, I thought I would add that if I manually use the 32-bit version of cscript.exe (c:\Windows\SysWow64\cscript.exe /nologo c:\utils\IsmInfo.vbc) within tcc.exe, of course this works fine.
Jun 3, 2008
Temecula, CA
Don't know if this helps, but on my system vbc is not defined, but vbs is and all the above commands point to the system32 version.

You're right - vbc is a special file type that I've created for vbscript files that are to be processed through cscript instead of wscript. Note that I want it to use the SysWow64 version, not the system32 version, because I specifically need 32-bit processing, not 64.
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly Determine if program started from command prompt Support 2
Joe Caverly How to? Determine size of file via download link Support 13
Jay Sage How to Determine INI File Used by TCMD Support 6
C Determine process svchost is running Support 13
M How to? How to determine if this is the first time that... Support 5
C How to determine if system is 32 or 64 bit? Support 5
M How to? Determine a whether vars beginning with certain characters exist... Support 5
C Add link to ewriter help to program group... Support 3
H Behavior change re piping a string to a Java program Support 1
S How to? Runs start /w in invisible mode OR run program after exit of another one Support 3
W Starting program for word to pdf conversion (difference cmd and tcc) Support 13
MickeyF Why doesn't my python program get executed without specifying its path? Support 2
R How to? START program as top window? Support 2
M "less" program that works in TC 18 Support 12
MickeyF running program from script and (not) returning to script Support 12
C INSTALLED returnes same program multiple times Support 14
C Recommend a Print program Support 1
MickeyF running a program from cmdline versus in batch file Support 1
C tcmd.ini not loading from program dir? Support 5
C WAD TCC: (Sys) C:\Program Files\JPSoft\TCMD17\tcc.exe is not a valid Win32 application. Support 6
C Win7 Program Data.... Support 2
M How to? Start a program on log on elevated abovenormal Support 5
D New 64-bit install goes to Program Files x86 Support 3
M How is this program found? Support 9
A How to? Run a TCC command from external program Support 2
C "Program Files" .vs. "Program Files (x86)" Support 2
BobK "do you want to allow the following program to make changes to this computer" Support 3
M How to? Get the return code from an external program... Support 8
C start /wait /pgm "program name" ^ ketstack n/w Support 3
L File association: System cannot find the associated program Support 30
vefatica c:\program? Support 4
D Start program without waiting and redirect output Support 6
nikbackm Alias - launch external program - batch file Support 16
Joe Caverly Program gives error if %_row > 25 Support 0
dcantor Program abort with tab bar Support 2
fpefpe escapes getting into program Support 10
M Invoking a DOS command within a C++ program Support 1
J 4NT Error when running 'system' from a program to execute a .BTM Support 3
C start/tab of a GUI program hangs TCMD Support 6
vefatica Can't execute @ALIAS[...] Support 5
R How to? Launch and execute commands in tcmd.exe through MSBuild Script. Support 3
Jay Sage Short File Name Won't Execute Support 4
S Need help to execute TCC commands on another system Support 6
K btm execute ondouble click Support 8

Similar threads