FOR /F "skip=5 tokens=1-3,4*" %I in ('dir') DO IF %L==0 ECHO %M is a zero
byte file._VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_ Todd Pukanecz, MCSE, GCWN Virginia Tech, Ag Human and Natural Resources IT Blacksburg, Virginia "I predict future happiness for Americans if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." -- Thomas Jefferson > -----Original Message----- > From: Brett Wesoloski [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 14, 2002 9:29 AM > To: NT 2000 Discussions > Subject: OT: DOS > > > Is there a command to check to see if a file is of 0 bytes? > > I am reading a file with DOS but I don't want to if it is > nothing because I > get an error. > > Any idea's, > TIA, > Brett > > ------ > You are subscribed as [EMAIL PROTECTED] > Archives: http://www.swynk.com/sitesearch/search.asp > To unsubscribe send a blank email to %%email.unsub%% > ------ You are subscribed as [email protected] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to [EMAIL PROTECTED]
