Executable file extensions in V10 b 38

May 29, 2008
567
4
Groton, CT
I got a repeatable error using
TCC 10.00.38 Windows XP [Version 5.1.2600] (with SP3)

This did not happen in TCC 9 and earlier (and it was the first time I tried it in v 10). It TCC 8 and 9, it worked as expected.

C:\work> dir tv_watch.tws

Volume in drive C is IRVING-C Serial number is 28aa:b2d9
Directory of C:\work\tv_watch.tws

01-19-2009 22:59 1,145 tv_watch.tws
1,145 bytes in 1 file and 0 dirs 4,096 bytes allocated
12,870,094,848 bytes free

C:\work> assoc .tws
.tws=TextPad.tws

C:\work> ftype TextPad.tws
TextPad.tws="C:\Program Files\TextPad 4\TextPad.exe" -s

C:\work> tv_watch.tws
TCC: (Sys) The system cannot find the path specified.
""

(%?=2, %_?=2)
C:\work> "C:\Program Files\TextPad 4\TextPad.exe" -s tv_watch.tws

(It worked.)

(The line with %? and %_? is a result of my PROMPT variable, and is self-explanatory. The source is
SET PROMPT=`%@if[%?%_? eq 0,,$c%%%%?$q$r,$s%%%%_?$q%_?$f$_]$P$g$s`
(all on one line, of course).
 
May 20, 2008
130
1
CA
This is how mine is setup and it works

C:\...\Downloads>assoc .tws
.tws=TextPad.tws

C:\...\Downloads>ftype TextPad.tws
TextPad.tws="C:\Program Files (x86)\TextPad 5\TextPad.exe" -s "%1"

If you do the ftype from commandline you might have to say "%%1"

hope this helps
 
May 29, 2008
567
4
Groton, CT
This is how mine is setup and it works

C:\...\Downloads>assoc .tws
.tws=TextPad.tws

C:\...\Downloads>ftype TextPad.tws
TextPad.tws="C:\Program Files (x86)\TextPad 5\TextPad.exe" -s "%1"

If you do the ftype from commandline you might have to say "%%1"

hope this helps


I modified it like this:
> ftype TextPad.tws
TextPad.tws="C:\Program Files\TextPad 4\TextPad.exe" -s "%1"

but it made no difference.

Thanks for the suggestion, though.
 
May 29, 2008
567
4
Groton, CT
The problem I reported in the base message in this string is fixed in build 39.

Thanks, Rex, for the quick turn-around.

However, I find that I must type the extension; that is

> TV_WATCH.TWS
works, but
> TV_WATCH
does not. There are no other files named TV_WATCH.* that are executable, and typing simply TV_WATCH worked in TC and TCC v9 and earlier.

(And the upper-casing was for legibility only -- it doesn't matter what case I type the commands in.)

Thanks.
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
dcantor wrote:

> The problem I reported in the base message in this string is fixed in build 39.
>
> Thanks, Rex, for the quick turn-around.
>
> However, I find that I must type the extension; that is
>
>> TV_WATCH.TWS
> works, but
>> TV_WATCH
> does not. There are no other files named TV_WATCH.* that are executable, and typing simply TV_WATCH worked in TC and TCC v9 and earlier.
>
> (And the upper-casing was for legibility only -- it doesn't matter what case I type the commands in.)

TCC has *never* supported this -- if it is working in v9 it's because
you either have an UNKNOWN_CMD alias or an executable extension. (Or a
PATHEXT with that extension defined, though that's less probable.)

Rex Conn
JP Software
 
May 29, 2008
567
4
Groton, CT
dcantor wrote:



TCC has *never* supported this -- if it is working in v9 it's because
you either have an UNKNOWN_CMD alias or an executable extension. (Or a
PATHEXT with that extension defined, though that's less probable.)

Rex Conn
JP Software
.

Okay, Rex, thanks. You're right (of course) PATHEXT was the answer.
 
Similar threads
Thread starter Title Forum Replies Date
M How to set Path variable for non-executable file extensions in 4DOS Support 8
W File completion without space/executable extensions Support 3
C V25 eats STDERR from executable extensions Support 8
David McClelland TCMD 24 & Perl - perl thinks it's own executable is ...\TCMD24\TCC.EXE??? Support 3
T TCHelp executable history? Support 2
Craig Fitzgerald problem with executable extensons with TCC version 19.10.51 x64 Support 3
E How to? use Executable Extensions: .bat and .cmd Support 8
Jay Sage Executable Extension with Lua Support 5
D Executable load errors suppressed Support 5
P Executable extension problem 2 Support 0
P Executable extension problem 1 Support 7
J History file load hangs if file has complete garbage in it... Support 1
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
thorntonpg file explorer - short cut keys Support 1
JohnQSmith New online help file wrong logo Support 7
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
samintz How to? swap endianness in a binary file Support 12
vefatica `Back quotes` - command line vs. batch file Support 5
fpefpe How to? batch file size Support 2
Jay Sage Issues With TCMD File Explorer Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
Joe Caverly @FILESIZE and NTFS File Stream Support 1
Joe Caverly Embedding an .EXE (or other file) into a .BTM Support 8
U Command help on file names Support 5
S Concatenate all playlists into 1 file Support 22
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
Joe Caverly Rename file that begins with Emoji Support 7
Joe Caverly PSHELL and NTFS File Streams Support 2
P Kill all other instances of tcc from a btm batch file Support 2
D ffind hangs on large file Support 18
Alpengreis Documentation Minor issue in help file for view /E Support 1
fpefpe batch file ending early Support 18
J Licesne file location Support 1
K robocopy cancelling batch file processing Support 28
Jay Sage TCMD Crashes with "tctoolbar /c /r file" Support 5
A Unable to pass batch file arguments unaltered Support 18
MikeBaas How to...extract a string from a .json-file? Support 10
vefatica LIBRARY and file name completion? Support 4
D What does the file "..\Everything\Run history.csv" store? Support 5
H Takecommand.pdf failed not a pdf file Support 6
Joe Caverly DIRectory Colorization in v25 Help File Support 0
C show file description? with dir? Support 8
D When copying/moving, appending " (2)" to filename when the target file already exist. Support 7
R How to? Dir specific file search patterns with spaces in the pathnames? Support 6
Joe Caverly _EXPANSION in help file Support 0
Stefan Hassel Installation file TC 24.02 Build 47 is actually version 25.00.1 Support 10
vefatica Are @FILEDATE[file] and @FILEDATE[file,u] ever different? Support 2
K_Meinhard Help file error Support 1
Joe Caverly JOBMONITOR in Help File Support 1
D btm file command line augments comparing for string or math. Support 12

Similar threads