General discussion

Locked

How to select and delete zero-byte-size

By EDIBOSS ·
I have an FTP process that generates zero-byte size files if there is no data to pick up at the external site. The second portion of the process (a proprietary program) errors out when it incurrs these troublesome files. How can I select these zero-size files and delete them in an automated batch file-type program.

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

How to select and delete zero-byte-size

by pVp In reply to How to select and delete ...

Batch capabilities vary with your environment--which you neglected to mention.

Collapse -

How to select and delete zero-byte-size

by EDIBOSS In reply to How to select and delete ...
Collapse -

How to select and delete zero-byte-size

by Lo In reply to How to select and delete ...

If you can't find another solution, write a quick prog QBASIC (Win NT, WINNT\SYSTEM32, assume Win95/98 same/similar) (C, Assembler, whatever).

That should have funct to get file size and if 0 can del file, set env var for FTP to skip transmission(or open after FTP and do same (neet delete access). There are freeware/shareware utilities that will probably do this (had one on Win 3.11, but...) lo

Collapse -

How to select and delete zero-byte-size

by EDIBOSS In reply to How to select and delete ...
Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums