----^--->
/\

//\\
//The\
/Sy
stem\
////
Guard
\

In the mount of the LORD it shall be seen. Genesis 22:14

ZeroFile

Booming Or Fuming? | MasterCatalog | ntlib (FREE) | NTCmdLib | MtCmds | Scripts | Almost Free | TheGuardBook | Help

 

Types of
.Mount/\Commands

.CrystalClear | .ExactName | .ExitELn | .GetValue | .ifCondition | .ifELn | .IsPattern | .ListValue | .NetValue | .NowValue | .RedirRapids | .ReliableReporting | .RestoreValue | .SetELn | .ValueEcho

.RedirRapids
Series

  Show | ZeroFile

.ZeroFile

Description

  1. Zeroes out a log file, leaving it at 0 bytes.
  2. The file will be created if it doesn't exist.

Syntax

%.ZeroFile%   [drive:][path]filename

Parameters and Switches

[drive:][path]filename

  Existing file to be cleared, or the name of a 0-byte file to be created.

Errorlevels and Output Variables

none

   

Examples, Notes and Instructions


C:\GuardPost>. zer
.ZeroFile

C:\GuardPost>dir *.log
Volume in drive C has no label.
Volume Serial Number is 888C-264A

Directory of C:\GuardPost

File Not Found

C:\GuardPost>. zerofile backup.log

C:\GuardPost>dir *.log
Volume in drive C has no label.
Volume Serial Number is 888C-264A

Directory of C:\GuardPost

08/24/2003 09:01 PM 0 backup.log
1 File(s) 0 bytes
0 Dir(s) 678,350,848 bytes free

C:\GuardPost>echo:Some data > backup.log

C:\GuardPost>dir *.log
Volume in drive C has no label.
Volume Serial Number is 888C-264A

Directory of C:\GuardPost

08/24/2003 09:01 PM 12 backup.log
1 File(s) 12 bytes
0 Dir(s) 678,350,848 bytes free

C:\GuardPost>type backup.log
Some data

C:\GuardPost>. zerofile backup.log

C:\GuardPost>dir *.log
Volume in drive C has no label.
Volume Serial Number is 888C-264A

Directory of C:\GuardPost

08/24/2003 09:01 PM 0 backup.log
1 File(s) 0 bytes
0 Dir(s) 678,350,848 bytes free

C:\GuardPost>


   

Related .Mount/\Commands, #Constants, $Functions, :Procedures

Resource

  Short Description
     

 

K

E

Y

Common Commands INTERNAL External /SWITCH Parameter Help text AddonTool
Mounted Commands .Mount/\Command CmdShorthand #Constant $FUNCTION :Procedure !GuardNote
Operating Systems NT/2K/XP/K3 NT Only NT/2K 2K Only 2K/XP XP Only XP/K3 K3 Only 2K/XP/K3

.RedirRapids
Series

  Show | ZeroFile
/\
//\\
//
The\
/Sy
stem\
////
Guard
\
COME ON UP WITH US!
and
Congratulations On Your Decision
to
RISE ABOVE
THE REST!

^
/
!\
/LIB\

TheSystemGuard.com [Revised: 2007-03-29]
Copyright © 1995-2007, JWC
Computer Communications,
All Rights Reserved, Worldwide.
 Disclaimer       Privacy       About Us       More


Communication Is Business!

We Master It With Knowledge!

^
/
.\
/M^C\