I am trying to do something where I have done similar things many times in the past re. the PDir command. Specifically, I am trying to call a function from within a function, and this time around I can't get it to work and I don't know what I am doing wrong. So as a slightly made-up example that perfectly illustrates the problem I am having:
which works as one would expect but does nothing useful.
So modifying it a bit to come closer to what I am actually trying to accomplish:
From everything I know/have done/remember, this should work (no percent sign on the outer function, duplicating the percent signs on the inner functions).
What am I missing/doing wrong?
- Dan
Code:
[Z:\Compression Stuff]Function WW=`%1`
[Z:\Compression Stuff]PDir *.txt /Ou /(WW[@FileSize[*]/@Lines[*]] fpn)
WW[49926/481] Z:\Compression Stuff\Analyzed Z-Drive Compression Statistics For Comp
ressed Files.txt
WW[103111/1002] Z:\Compression Stuff\Analyzed Z-Drive Compression Statistics.txt
WW[109110/1002] Z:\Compression Stuff\Analyzed Z-Drive Compression StatisticsIII.txt
WW[52797/480] Z:\Compression Stuff\Compressed Z-Drive Files .txt
WW[95177/1455] Z:\Compression Stuff\Compression Report Stage 1.txt
WW[95177/1455] Z:\Compression Stuff\Compression Report Stage 2.txt
WW[2069/56] Z:\Compression Stuff\ExtractDateTime .btm Subroutine.txt
WW[180/0] Z:\Compression Stuff\Raw PDir Compression Report.txt
WW[56311/520] Z:\Compression Stuff\Uncompressable Z-Drive Files.txt
So modifying it a bit to come closer to what I am actually trying to accomplish:
Code:
[Z:\Compression Stuff]PDir *.txt /Ou /(@WW[%%@FileSize[*]/%%@Lines[*]] fpn)
TCC: (Sys) The filename, directory name, or volume label syntax is incorrect.
"%@Lines[*]"
What am I missing/doing wrong?
- Dan