J
Joachim Hofmann
Hello,
I have a batch file which does some copy jobs nightly.
I wish to copy a file only if there is enough space, otherwise I wish to delete
some other file(s).
I get the size of the file to be copied by the for...%~zI - clause.
DIR gives me the free disk space into another variable.
Now I compare these values (and redirect the output into a logfile).
========================================================================
Result of the *first* copy job:
disk free: 33013485568
file size: 18418023936
Result message of copy: "Network is not available any more"
Result of the *following* copy job:
disk free: 24847392768
file size: 18418023936
Result message of copy: "Not enough space available"
The *following* job (3037577216, 77614592) however succeeded as I expected.
========================================================================
Whats wrong, any hints?
Thank You
Joachim
[Windows 2000 Server]
I have a batch file which does some copy jobs nightly.
I wish to copy a file only if there is enough space, otherwise I wish to delete
some other file(s).
I get the size of the file to be copied by the for...%~zI - clause.
DIR gives me the free disk space into another variable.
Now I compare these values (and redirect the output into a logfile).
========================================================================
Result of the *first* copy job:
disk free: 33013485568
file size: 18418023936
Result message of copy: "Network is not available any more"
Result of the *following* copy job:
disk free: 24847392768
file size: 18418023936
Result message of copy: "Not enough space available"
The *following* job (3037577216, 77614592) however succeeded as I expected.
========================================================================
Whats wrong, any hints?
Thank You
Joachim
[Windows 2000 Server]