WAD @index not working in v16 x64

Apr 2, 2011
1,429
10
54
North Carolina, USA
Code:
TCC 16.00.38 x64 Windows 7 [Version 6.1.7601]
Copyright 2014 JP Software Inc. All Rights Reserved
Registered to Charles S. Galloway - 5 System License

[C:\Program Files\JPSoft\TCMD16x64]if not 1 == 01 echo FAIL (looks like CMD.EXE)

[C:\Program Files\JPSoft\TCMD16x64]*if %@index[4NT!TCC!TCCLE!TCMD32!,%_cmdproc!] == -1 echo FAIL (unknown shell)
FAIL (unknown shell)

[C:\Program Files\JPSoft\TCMD16x64]*if %_4ver lt 7 echo FAIL (_4VER less than 7)

[C:\Program Files\JPSoft\TCMD16x64]

[C:\Program Files\JPSoft\TCMD16x64]echo %_cmdproc
TCC

[C:\Program Files\JPSoft\TCMD16x64]echo "%_cmdproc"
"TCC"

[C:\Program Files\JPSoft\TCMD16x64]
 
Apr 2, 2011
1,429
10
54
North Carolina, USA
Code:
[C:\Program Files\JPSoft\TCMD16x64]setdos
ANSI=0
COMPOUND=&
DESCRIPTIONS=1  (DESCRIPT.ION)
ESCAPE=^
EVAL=0.10
EXPANSION=0
MODE=1
NOCLOBBER=1
PARAMETERS=$
CURSOR OVERSTRIKE=15
CURSOR INSERT=100
VERBOSE=0

[C:\Program Files\JPSoft\TCMD16x64]
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,447
88
Albuquerque, NM
prospero.unm.edu
Nothing weird there. I'm baffled.

I have found that OPTION CMDVARIABLES, if enabled, will break the test in question. But it breaks almost everything, including ECHO %_CMDPROC. If that were on, you'd be seeing a whole lot more issues.
 
May 20, 2008
11,388
99
Syracuse, NY, USA
Nothing weird there. I'm baffled.

I have found that OPTION CMDVARIABLES, if enabled, will break the test in question. But it breaks almost everything, including ECHO %_CMDPROC. If that were on, you'd be seeing a whole lot more issues.
I can toggle Charles's error with the "DelayedExpansion" directive, available via the OPTION dialog ... Yes = error, No = no error.
 
Apr 2, 2011
1,429
10
54
North Carolina, USA
What is the option text for the "DelayedExpansion" directive? Nothing seems to be close to it for me...
 
Apr 2, 2011
1,429
10
54
North Carolina, USA
Charles. I have it working now. Since it seems to be the DelayedExpansion INI directive - it might be a good idea to modify the RegTweaks.btm so it saves the OPTION[], changes it to off, then reverses the process before the BTM is finished.

Also I did the RegTweaks /undo and looked at the .REG file (attached) and it seems to be saving more then the JPSoft related items. Is it possible to modify the -undo processing so it just does the JPSoft products?

NOTE: Edited since I forgot to upload the .REG file (renamed)
 

Attachments

  • Backup 2014-01-23.reg.txt
    22 KB · Views: 85
Last edited:

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,447
88
Albuquerque, NM
prospero.unm.edu
Charles. I have it working now. Since it seems to be the DelayedExpansion INI directive - it might be a good idea to modify the RegTweaks.btm so it saves the OPTION[], changes it to off, then reverses the process before the BTM is finished.

Or just change all the exclamation points to periods or dollar signs or something....
 

samintz

Scott Mintz
May 20, 2008
1,501
16
Solon, OH, USA
Or just simple spaces would work too.
Code:
*if %@index[4NT TCC TCCLE TCMD32,%_cmdproc] == -1 echo FAIL (unknown shell)
 
May 20, 2008
3,515
4
Elkridge, MD, USA
I typically use semicolon ";", esp. when spaces are possible. Hasn't failed me yet.

Of course, I never use CMD, so all CMD compatibility directives are off...

There are instances when only ASCII is available (7-bit), but not the vertical bar. In those circumstances I use the exclamation mark for column separator in tables (the visually closest), where the issue might have hurt me but for choosing incompatibility with CMD.
 
Similar threads
Thread starter Title Forum Replies Date
M @Index not working like I thought it would... Support 2
D Help index has GUNZIP Support 0
S Documentation HELP Nit - Index - Desktop command Support 0
Phileosophos How to? The help system redirects to the index page Support 4
M "Reawakening" of an @Index issue... Support 8
M Weird @Index function result... Support 7
M echo %@index[1234,.,-1] return -21 in new version Support 3
C jpsoft.com/oldver/index Support 1
S Index entry Support 0
vefatica No help index entry for WINDOW Support 4
twaterloo FolderMonitor for the 1st time not working Support 5
Tim Rowe NTFS Descriptions not working Support 13
J Batcomp still not working for me in TCMD27 Support 1
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
M Why did BEEP just quit working? Support 12
cgunhouse SETLOCAL not working in BDEBUGGER Support 9
nickles ANSI Colors Windows 7 no longer working Support 6
K ANSI Not Working Support 8
thorntonpg option /u not working The directory name is invalid Support 5
Charles Dye Is the "File Associations" installer dialog working? Support 4
H @ceiling @floor @int not working version 21.01.63 Support 9
K Command Line Selection Not Working Support 12
G Extended directory search not working Support 4
B %@fileseek is not working ? Support 2
C "Take Command has stopped working" Support 1
H New command not working well in Windows 7 Support 4
C "TakeCommand has stopped working" Support 3
N ping DNS lookup not working Support 1
N Updater/silentall not working? Support 1
K Help Not Working Support 11
R Fixed set /r has stopped working in build 35 Support 4
U Keys and IDX not working Support 11
Jesse Heines How to? Everything Tool Not Working After Version 20 Installation Support 8
WavSlave Fixed LIST /U not working in TCC v19 Support 5
Jay Sage %_selected no longer working Support 15
S iftp copying pgp files from ftp is not working Support 11
fishman@panix.com Extended Directory Searches are not working for me in CDD Support 9
J How to set working directory Support 10
vefatica Fixed LEAVE N not working Support 7
P %date5 not working Support 6
M WAD PDir not working correctly... Support 5
Detlef Fixed ParameterChar in TCMD.INI no longer working Support 35
Jay Sage WAD Variable _LOGFILE Not Working Support 2
I v16 - Shortcuts not working Support 6
rps Fixed Win "set /p" not working in V17 build 53 Support 3
Jay Sage Toolbar Update to INI File Not Working Support 10
Jay Sage Ctrl-C Not Working Reliably to Copy Screen Content Support 4
Jay Sage Unknown_CMD Not Working Support 4
fromano Fixed /E not working in TCMD 17.0.40 while doing one way synch Support 1
R WAD Copy's command dialogue not working Support 2

Similar threads