I have the following code in one of my scripts, but it does not seem to be reliable, it seems that if the file is actually 1 If he is less then he may fail or at least did it for somebody, am I doing something wrong or is there a better way of doing this?
In short, check that file.txt is & gt; Size = %% ~ zi rim has been added for 0: ~ = <%> i ("file.txt"): If defined size set size = 0 if% size% Gtr 0 (type file.txt & gt; & Gt;% FNAME%) Other (echo No Data Found> System Factor%)
Edit: The code was created with code I changed the upstream Actually it was never possible to create such a file.txt file. I changed the name of the file, to repeat some issues like foobar.txt in the file. "If the defined size is not set size = 0" then it seemed to solve the problem.
Only one thing can think that the file will not exist, in that case %% ~ Zi Nothing spreads (no 0). After deciding this size easily, the size is clearly set to 0 if the size is not defined. "Set = %% ~ set to zi" in / f% ("file.txt") for
if defined size set size = 0 if% size% gtr 0 (type File.txt & gt; & gt;% FNAME%) Other (echo not found on system Data & gt; & gt;% FNAME%)
No comments:
Post a Comment