WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

FileSize Returns Zero


Question:

I am running WB 2003H (compiler). I have a process that does a filesize() function on a file that is created by a file copy with explorer from one folder to an other, the file is very big and comes from a remote machine, so the process is very long. As soon as the copy begin I can see the final size in the target folder, but the filesize on this file returns always 0 untill the file is completely transfered. Is an expected behavior ?

Answer:

Yes this is expected behavior for the FileSize function. Use the FileSizeEX function instead.

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Killing~and~Terminating~Apps+Detect~when~App~Finishes~Saving~File.txt

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/File~Operations+Check~if~File~is~Open~or~Exists.txt


Article ID:   W15949
File Created: 2014:07:18:09:51:38
Last Updated: 2014:07:18:09:51:38