Copy and paste the following in a bat file. Change the drive/folder to
where the potential 0 byte files reside.
 
@echo off
for /f "tokens=4-5" %%a in ('dir D:\Temp\*.*') do (if %%a EQU 0 (del
%%b))
goto :EOF
 
 
Explanation:
 
The 'dir' listing will look something like this:
 
07/06/2006  09:30 AM    <DIR>          .
07/06/2006  09:30 AM    <DIR>          ..
07/06/2006  09:29 AM               112 a.bat
07/06/2006  09:29 AM                  0  test.txt
               2 File(s)            112 bytes
               2 Dir(s)   7,452,401,664 bytes free
 
Token '4' (4th column in the listing) is the file size and token '5' is
the file name. %%a corresponds to token 4 and %%b corresponds to token
5. The rest is self explantory.
 
HTH.
 
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
Steve Joyce
Sent: Thursday, July 06, 2006 7:14 AM
To: [email protected]
Subject: [EDI-L] 0 byte files in Gentran NT 5.0



We've upgraded to 5.0 and have found that every so often we import a 0 
byte file. 5.0 doesn't like this and puts the file in the outbox 
reconciliation folder, which is ok. Sterling has suggested modifying 
the ftp process or using a .bat file to check the file size before 
import. Has anyone run into this situation on 5.0 or created processes 
as mentioned by Sterling? Any info would be greatly appreciated.
Thanks,
Steve 



 


[Non-text portions of this message have been removed]



...
Please use the following Message Identifiers as your subject prefix: <SALES>, 
<JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC>

Job postings are welcome, but for job postings or requests for work: <JOBS> IS 
REQUIRED in the subject line as a prefix. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/EDI-L/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to