@Index not working like I thought it would...

May 24, 2010
Northlake, Il
As usual for me, some code:
  Iff %@Index[%Track,Movie and Television Soundtrack] GT -1 Then
     @Echo %@Index[%Track,Movie and Television Soundtrack] "%Track"
and its results:
   19 "Misc. Web Sources\(Movie and Television Soundtrack(s)\Glee\For the Longest Tim
    0 "Music.AllOfMP3.com\Abba\Number Ones\11 - Knowing Me, Knowing You.mp3"
    1 "Music.AllOfMP3.com\Abba\Number Ones\17 - I Do, I Do, I Do, I Do, I Do.mp3"
    0 "Music.AllOfMP3.com\Crosby, Stills, Nash (and Young)\Daylight Again\02 - Wasted
   13 "MusicMP3.ru\(Movie and Television Soundtrack(s))\Last Action Hero\07 - Dream O
   13 "MusicMP3.ru\(Movie and Television Soundtrack(s))\Les Misrables - Original Lond
   13 "MusicMP3.ru\(Movie and Television Soundtrack(s))\Les Misrables - Original Lond
   13 "MusicMP3.ru\(Movie and Television Soundtrack(s))\Les Misrables - Original Lond

I admit what's going on here escapes me.


Jan 3, 2012
It's the commas in the track names. You need to quote the names (and the retuned indices will then be 1 higher than before).
Similar threads
Thread starter Title Forum Replies Date
C WAD @index not working in v16 x64 Support 14
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