I have problems as noted in this script:
rem ---- loop through directories under j:\taqDAILYNBBO\ ----
rem --------------- enter a blank line ---------
echo ' '
rem ---------------- how do i enter a blank line?
for /r /D j:\taqDAILYNBBO\ %x in (*) (
echo file in J:= %x
echo %@filesize[%x]
iff %@filesize[%x]>5000000000 then
rem ------ both of the statement below give errors -----
rem if (%@filesize["%x\_A"]>100 .AND. %@filesize["%x\_ZZ"]>100) (
rem iff (%@filesize["%x\_A"]>100 .AND. %@filesize["%x\_ZZ"]>100) then
echo filesize for _ZZ in J:= %@filesize["%x\_ZZ"]
iff %@filesize["%x\_ZZ"]>100 then
echo data exists in J:
echo does directory exist in M:? %@filesize["m:\taqDAILYNBBO\%@substr[%x,16]"]
iff %@filesize["m:\taqDAILYNBBO\%@substr[%x,16]"] == -1 then
rem -- this is not working. what is the indication the the directory does not exist?
rem mkdir "m:\taqDAILYNBBO\%@substr[%x,16]"
endiff
rem ------- trying to list the files in %x, why does this not work? -------
for %x %y in (*) (
echo ticker= %y
)
echo file size in M:= %@filesize["m:\taqDAILYNBBO\%@substr[%x,16]\_a"]
iff %@filesize["m:\taqDAILYNBBO\%@substr[%x,16]\_a"] == -1 then
rem
echo enter file move command here
endiff
endiff
endiff
)
SOME OF THE OUTPUT FOLLOWS:
file in J:= J:\taqDAILYNBBO\20070712
0
file in J:= J:\taqDAILYNBBO\20070713
7350478392
filesize for _ZZ in J:= 554030
data exists in J:
does directory exist in M:? 0
C:\Program Files (x86)\JPSoft\TCMD9\mine\sz.btm [41] Usage : FOR [/A:[[-][+]rhsdaecjot] /D /F ["options"] /H /I"text" /L /R [path] /T"..."] %var IN ([@]set | start, ste
p, end) [DO] command ...
file size in M:= -1
enter file move command here
rem ---- loop through directories under j:\taqDAILYNBBO\ ----
rem --------------- enter a blank line ---------
echo ' '
rem ---------------- how do i enter a blank line?
for /r /D j:\taqDAILYNBBO\ %x in (*) (
echo file in J:= %x
echo %@filesize[%x]
iff %@filesize[%x]>5000000000 then
rem ------ both of the statement below give errors -----
rem if (%@filesize["%x\_A"]>100 .AND. %@filesize["%x\_ZZ"]>100) (
rem iff (%@filesize["%x\_A"]>100 .AND. %@filesize["%x\_ZZ"]>100) then
echo filesize for _ZZ in J:= %@filesize["%x\_ZZ"]
iff %@filesize["%x\_ZZ"]>100 then
echo data exists in J:
echo does directory exist in M:? %@filesize["m:\taqDAILYNBBO\%@substr[%x,16]"]
iff %@filesize["m:\taqDAILYNBBO\%@substr[%x,16]"] == -1 then
rem -- this is not working. what is the indication the the directory does not exist?
rem mkdir "m:\taqDAILYNBBO\%@substr[%x,16]"
endiff
rem ------- trying to list the files in %x, why does this not work? -------
for %x %y in (*) (
echo ticker= %y
)
echo file size in M:= %@filesize["m:\taqDAILYNBBO\%@substr[%x,16]\_a"]
iff %@filesize["m:\taqDAILYNBBO\%@substr[%x,16]\_a"] == -1 then
rem
echo enter file move command here
endiff
endiff
endiff
)
SOME OF THE OUTPUT FOLLOWS:
file in J:= J:\taqDAILYNBBO\20070712
0
file in J:= J:\taqDAILYNBBO\20070713
7350478392
filesize for _ZZ in J:= 554030
data exists in J:
does directory exist in M:? 0
C:\Program Files (x86)\JPSoft\TCMD9\mine\sz.btm [41] Usage : FOR [/A:[[-][+]rhsdaecjot] /D /F ["options"] /H /I"text" /L /R [path] /T"..."] %var IN ([@]set | start, ste
p, end) [DO] command ...
file size in M:= -1
enter file move command here