Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to check file size in DOS

RE: How to check file size in DOS

From: Guidry, Chris <chris.guidry_at_atcoelectric.com>
Date: Wed, 14 Feb 2001 14:06:04 -0800
Message-ID: <F001.002B495B.20010214134049@fatcity.com>

Hi,
Check out Batfile tricks at:

        http://home7.inet.tele.dk/batfiles/

There is a section as follows:

30. Determine if a file is a 0 byte file without deleting it. :: is0byte.bat
@ECHO off
COPY>nul %1 nul |FIND "1 file(s) copied" IF not errorlevel=1 ECHO %1 is not a 0 byte file IF errorlevel=1 ECHO %1 is a 0 byte file  <<...OLE_Obj...>>
:: is0byte2.bat
COPY %1 nul |FIND " 0 file" >nul
IF not errorlevel=1 ECHO %1 is a 0 byte file IF errorlevel=1 ECHO %1 is not a 0 byte file

--
Chris J. Guidry  P.Eng.
ATCO Electric, Metering Services
Phone: (780) 420-4142
Fax: (780) 420-3854
Email: chris.guidry_at_atcoelectric.com


> -----Original Message-----
> From: Smith, Ron L. [SMTP:rlsmith_at_kmg.com]
> Sent: Wednesday, February 14, 2001 12:46 PM
> To: Multiple recipients of list ORACLE-L
> Subject: How to check file size in DOS
>
> I need to check the size of a file from within a batch script to see if it
> is empty. Is there any way to do this?
>
> Ron Smith
> Database Administration
> rlsmith_at_kmg.com
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Smith, Ron L.
> INET: rlsmith_at_kmg.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Guidry, Chris INET: chris.guidry_at_atcoelectric.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Received on Wed Feb 14 2001 - 16:06:04 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US