@Files, @FileSize returning nothing...

May 24, 2010
Northlake, Il
As is usual for me, right off of the screen:

[C:\]Echo %@Comma[%@Files[/s /H *]] Files %@Comma[%@FileSize[/S *,b] Bytes %@Comma[%@FileSize[/A *,b,a]] Bytes Allocated

As you can presumably see, nothing is displayed. What is going on here?
May 20, 2008
Syracuse, NY, USA
Your command gives an error here.
v:\> Echo %@Comma[%@Files[/s /H *]] Files %@Comma[%@FileSize[/S *,b] Bytes %@Comma[%@FileSize[/A *,b,a]] Bytes Allocated
TCC: Syntax error "@FileSize[/S *,b"
After adding a closing ']' to the second @COMMA, and changing '/A' to '/S' in the third @FILESIZE (which I suppose you meant), I get reasonable output.
v:\> Echo %@Comma[%@Files[/s /H *]] Files %@Comma[%@FileSize[/S *,b]] Bytes %@Comma[%@FileSize[/s *,b,a]] Bytes Allocated
2,151 Files 202,299,475 Bytes 207,249,408 Bytes Allocated
May 20, 2008
Syracuse, NY, USA
And you can avoid two of the @COMMAs by adding 'c' to the scale parameter.
v:\> Echo %@Comma[%@Files[/s /H *]] Files %@FileSize[/S *,bc] Bytes %@FileSize[/s *,bc,a] Bytes Allocated
2,151 Files 202,299,475 Bytes 207,249,408 Bytes Allocated
May 24, 2010
Northlake, Il
Vince you are correct, there were syntax errors. But even after I fixed them (I found them myself) I still got the same thing: absolutely nothing; no error message(s). In fact, I got absolutely nothing when I echoed just %@Files[/S /H *].
May 24, 2010
Northlake, Il
No Vince, it's not a function. Below is the complete list of my functions so you can see it's not there.
JP:="C:\Program Files (x86)\JPSoft\TCMD15"
MS:="Z:\Money Spreadsheets"
PF:=C:\D\Program Files
Ac*tualFiles=C:\D\DOS\Startx ActualFiles
BD*TTMDir=(PDir %$ /A-D /S /(dy/m/d th:m:s zc fpn) | Find /V "\$VAULT\" | Find /V "BuildLog.htm" | Find /V ".dep" | Find /V ".idb" | Find /V ".ilk" | Find /V ".manifest" | Find /V ".ncb" | Find /V ".obj" | Find /V ".pdb" | Find /V ".suo" | Find /V ".vcproj" | Find /V /I "zz." | Find /V "\Temp\" | Find /V /I ".7z" | Find /V /I ".zip" | Find /V /I "crap" | Find /V /I "Junk" | Find /V /I "Junq" | Find /V /I "Fuck" | Sort /R)
Bu*ildPath=C:\D\DOS\Startx BuildPath
Cle*anZ-DriveC++Directories=PushD "Z:\Development\C, C++" & For /D D1 in (*) Do (For /D D2 in ("%D1\*") Do (PushD "%D2" &  "D:\DOS\CleanC++Directory.btm" "%@Full[%D2]" & PopD)) & PopD
Co*lumnNumbers=*Start /PGM Notepad C:\D\DOS\ColumnNumbers.txt
CR*atio=Echo %@Eval[100-(100*%@FileSize[*.7z,b,a]/(%@FileSize[/S *,b,a]-%@FileSize[*.7z,b,a]))]
DD*PYA=C:\D\DOS\DelDups32.exe /P /Y /A
DDi*r=*Dir /K /M /AD /H
Dir=*Dir /H
DoM*agnify=NirCmd Elevate C:\windows\System32\Magnify.exe & NirCmd SetProcessPriority Magnify.exe AboveNormal
DT*TM=@Echo %_DOWF, %_MonthF %_Day, %_Year (%_Date) %_Time
Ela*psedTime=*Echo %TE51413
EP=For /L %N in (0,1,%@Dec[%@Words[";",%Path]]) Echo %@LFN[%@Word[";",%N,%Path]]
EPR=For /L %N in (0,1,%@Dec[%@Words[";",%Path]]) Echo %@Word[";",%N,%Path]
Ex*cel=*Start /PGM "C:\Program Files (x86)\Microsoft Office\OFFICE11\EXCEL.EXE" %$
Exp*ortClear=Attrib -R C:\D\Temp\Export*.csv & Del C:\D\Temp\Export*.csv
FCB=C:\Windows\System32\FC.exe /B %$
FD*ir=*Dir /A-D /H /K /M
FileT*ype=C:\D\DOS\Startx FileType
Filt*erRawMusicList=C:\D\DOS\Startx FilterRawMusicList
Fl*ush=Start /B /C /Elevated /L /PGM "C:\D\SysInternals\PSSync.exe" Z: E: D: C:
GetL*ongPathDirectoryNames=C:\D\DOS\Startx GetLongPathDirectoryNames
GetPas*words=CD Z:\ & If Not Exist %@If["%1" == "",Z:\Info,%1] MD %@If["%1" == "",Z:\Info,%1] /D & C:\D\DOS\UnZip.exe "%@ExecStr[*PDir /(fpn) /O-D /A-D "C:\D\DOCUME~1\FINANC~1\LOGONA~1\Account Information.V20*.zip"]" & *Start .
GetPat*hDirectoryNames=C:\D\DOS\Startx GetPathDirectoryNames
GetRawM*usicList=C:\D\DOS\Startx GetRawMusicList
GetRawP*athDirectoryNames=C:\D\DOS\StartX GetRawPathDirectoryNames
GetSh*ortPathDirectoryNames=C:\D\DOS\Startx GetShortPathDirectoryNames
Han*dle=C:\D\SysInternals\Handle %@Full[%1]
HelpS*afeChars=*Start /PGM "C:\Program Files\JPSoft\Plugins\SafeChars.chm"
HelpT*CC=*Start /PGM "C:\Program Files\JPSoft\TCMD15x64\tcmd.chm"
Hi*story=*History | List
ID*DPYA=C:\D\DOS\DelDups32.exe /P /I /Y /A
IIM*akeAlbumList=C:\D\DOS\Startx MakeAlbumListII
IIR*emoveEmptyDirectories=C:\D\DOS\Startx IIRemoveEmptyDirectories
KeepL*ines=C:\D\DOS\Startx KeepLines
Le*adPath=C:\D\DOS\Startx LeadPath
LF*unction=Function %$ | List
List7*zFileContents=For %F in ("%1") Do (Echo ********** %F ********** & 7z L "%F")
Lo*ckHunter="C:\Program Files\LockHunter\LockHunter.exe"
ND*ir=*Dir /H
NP=*Start /PGM C:\Windows\System32\Notepad.exe %$
NPRO=SetLocal & Set File="%@UnQuoteS[%1]" & Set Attrib=+%@Replace[C,,%@Replace[_,,%@Attrib[%File]]] & Attrib -RHS %File & *Start /Wait Notepad %File & Attrib %Attrib %File & EndLocal
OOAc*cess*Start=/PGM "C:\Program Files (x86)\OpenOffice.org 3\program\sbase.exe"
OODr*aw=*Start /PGM "C:\Program Files (x86)\OpenOffice.org 3\program\sdraw.exe"
OOEx*cel=*Start /PGM "C:\Program Files (x86)\OpenOffice.org 3\program\scalc.exe"
OOIm*press=*Sta   rt /PGM "C:\Program Files (x86)\OpenOffice.org 3\program\simpress.exe"
OOMa*th=*Start /PGM "C:\Program Files (x86)\OpenOffice.org 3\program\smath.exe"
OOOf*ice=*Start /PGM "C:\Program Files (x86)\OpenOffice.org 3\program\soffice.exe"
OOWe*b=*Start /PGM "C:\Program Files (x86)\OpenOffice.org 3\program\sweb.exe"
OOWo*rd=*Start /PGM "c:\Program Files (x86)\OpenOffice.org 3\program\swriter.exe"
Op*era=*Start /PGM C:\PROGRA~2\Opera\Opera.exe
Or*iginalDirectory=CDD %BeforeDecryptDirectory
PF*ind=For /T";" %P in (%Path) If IsFile "%P"\*%@Name[%1]*.*%@Ext[%1]* PDir /P /A-D %P\*%@Name[%1]*.*%@Ext[%1]* /(dy-m-d th:m:s zc fpn) | Sort | C:\D\dos\DuplicateRemover.Release.exe | C:\Windows\System32\Find.exe /V "Discarding duplicate"
Prog*ram=Echo %@FType[%@Assoc[%1]]
QS*tart=*Start /PGM
Sa*veDirectory=Set BeforeDecryptDirectory=%_CWD
Show7*zCompressionStatistics=C:\D\DOS\Show7zCompressionStatistics.btm %$ |& List
So*litaire=*Start /PGM C:\Users\ALLUSE~1\MICROS~1\Windows\STARTM~1\Programs\Startup\SOLITA~1.LNK
SPF*Lite=*Start /PGM "C:\Program Files (x86)\SPFLite\SPFLite.exe"
TCC=*Start /PGM "C:\Program Files\JPSoft\TCMD15x64\tcc.exe"
TCC32=*Start /PGM "C:\Program Files (x86)\JPSoft\TCMD15\tcc.exe"
TCMD=*Start /PGM "C:\Program Files\JPSoft\TCMD15x64\tcmd.exe"
TCMD32=*Start /PGM "C:\Program Files (x86)\JPSoft\TCMD15\tcmd.exe"
TCMDE*levated=*Start /Elevated /PGM "C:\Program Files\JPSoft\TCMD15x64\tcmd.exe"
UpM*agnify=NirCmd Elevate C:\windows\System32\Magnify.exe & NirCmd SetProcessPriority Magnify.exe AboveNormal
VC08="C:\D\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VCExpress.exe"
Vi*ewPDF="C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" %@SFN[%@Unquote[%1]]
Wi*namp=*Start /PGM C:\D\PROGRA~1\WinAmp\winamp.exe
WMP*Layer=*Start /PGM C:\PROGRA~2\WI54FB~1\wmplayer.exe
Wo*rd=*Start /PGM "C:\Program Files (x86)\Microsoft Office\OFFICE11\WINWORD.EXE" %$
XXXXDir=C:\D\DOS\DirPlus %$
May 24, 2010
Northlake, Il
Sorry Charles, you are correct, those were aliases. Here's the list of functions:
AppName=%@If[%@Index[%@RawAppName[%1],/] == -1,%@RawAppName[%1],%@Trim[%@Left[%@Index[%@RawAppName[%1],/],%@RawAppName[%1]]]]
BaseFileName=%@FileName[%@Left[-%@Inc[%@Len[%@Ext[%@If["%@UnQuoteS[%1]" == "",%_BatchName,%@UnQuoteS[%1]]]]],%@If["%@UnQuoteS[%1]" == "",%_BatchName,%@UnQuoteS[%1] ]]]
Executable=%@If['%@Trim[%@FType[%@Assoc[.%@Ext[%1]]]]' == '""',%1,%@If["%@Assoc[.%@Ext[%1]]" != "",%@Field[" ",0,%@FType[%@Assoc[.%@Ext[%1]]]],%COMSPEC]]
Link=%@If["%@SymLink[%1]"=="",%@If["%@Junction[%1]"=="",^<Not A Junction Or Symbolic Link^>,%@QuoteS[%@Junction[%1]]],%@QuoteS[%@SymLink[%1]]]
RemoveParameter=%@ExecStr[E:\DOS\RemoveParameter %1 %2]
SubDirs=%@ExecStr[E:\DOS\SubDirs.btm %$]
TrueFileSize=%@Trim[%@Replace[,,,%@ExecStr[PDir %1 /(ZCA)]]]
UnOuterQuotes=%@If['%@Left[1,%1]' == '"' .AND. '%@Right[1,%1]' == '"',%@Left[-1,%@Right[-1,%1]],%1]
VerifyFileNameAndPath=%@ExecStr[E:\DOS\VerifyFileNameAndPath %1]
Similar threads
Thread starter Title Forum Replies Date
M @Files and @FileSize failures... Support 2
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
fpefpe How to? shortcuts and batch files Support 4
C v28 key files Support 2
J ffind does not find files Support 4
C duplicate files in multiple plugin sites Support 9
Dmitry L. Kobyakov Fixed The SETARRAY /R command works incorrectly with cyrillic files Support 2
S How to? Deinstalling TC/reinstating execution of bat files by cmd in Win7 Support 31
vefatica FFIND, temp files? ... not deleted? Support 0
R FUNCTION to count NUMBER of files matching a pattern and specific length/not length Support 4
vefatica Tmp files from in-process pipes not deleted Support 6
vefatica Finding files with alternate data streams? Support 4
rps Multi-column DIR /v not displaying all files. Support 5
D How to skip files in a fileset? Support 6
vefatica PIPEVIEW leaves TMP files Support 18
K "copy /z /w" command not deleting read-only files in destination Support 10
Jesse Heines "Taken" date for JPG and PNG files Support 4
O I cannot use links to .btm files Support 5
C How to? rename files with spaces Support 8
R How to? Append files in multiple subfolders using copy? Support 8
Joe Caverly "Functions" in cmd.exe batch files Support 6
S Batch files Calling Batch Files Support 2
vefatica Find Files/Text dialog: does it work? Support 0
Joe Caverly UNZIPping older .ZIP files Support 3
C Documentation default location for LOG files Support 21
P exit /b in batch files Support 7
P Labels in batch files: TCC vs CMD.exe Support 9
M ANSI is used to show files instead of OEM in version 17 to 19 ! Support 5
C 7Z files on forum? Support 0
x13 Problem listing repository files using DIR http(s)://... Support 8
B Can copy command concatenate multiple mp3 files Support 2
redwdc Copying files with spaces, commas, etc. Support 5
J New lexer for TCC batch files. Support 0
M How to? want to download a file from a website enumarate the links and download the files Support 2
keithg1964 TCC RT Install Files Support 1
P Fixed Rexx .cmd files no longer work in TCC 20 Support 3
thorntonpg Handling files with embedded spaces Support 1
WavSlave Fixed Unable to sort files by description in TCC v19 Support 2
P Files older - exist Support 1
D safe delete files command Support 10
P Copying files in subdirectories Support 9
C WAD VIEW print multiple files - switches fail Support 10
MikeBaas How to? SELECT: exclude files / display prompt Support 2
Phileosophos WAD Can't rename files in subfolders Support 1
nickles WAD del unable to delete files ending in "." Support 18
P Rename files with ampersand in the name Support 1
C Touch command — I Need to touch matching files in another directory. Support 5
S iftp copying pgp files from ftp is not working Support 11
M Fixed Cannot use the "Browse..." function in "Find files/text" dialogbox Support 2
fromano How to? Everything finding directories with 2 or more files in them Support 3

Similar threads