R3102-R3103-HP 6600/HSR6600 Routers Fundamentals Configuration Guide

100
every command in the batch file. If a command has error settings or the conditions for executing the
command are not met, the system skips this command.
You can edit a batch file on your PC, and then upload or download it to the device. If the extension of
the file is not .bat, use the rename command to change it to .bat.
To execute a batch file:
Ste
p
Command
1. Enter system view.
system-view
2. Execute a batch file.
execute filename
Setting the file system operation mode
The file systems support the following operation modes:
alert—The system warns you about operations that might cause problems such as file corruption
and data loss. To prevent incorrect operations, use the alert mode.
quiet—The system does not prompt for any operation confirmation.
To set the file system operation mode:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Set the file system operation
mode.
file prompt { alert | quiet }
Optional.
The default is alert.
File system management examples
# Display the files and the subdirectories in the current directory.
<Sysname> dir
Directory of cfa0:/
0 drw- - Feb 18 2009 10:40:40 logfile
1 -rw- 17262936 Aug 28 2012 17:08:50 backup.bin
2 -rw- 3910 Nov 29 2012 13:45:50 system.xml
3 drw- - Sep 26 2010 11:42:34 domain1
4 -rw- 41950 Aug 21 2007 15:02:06 default.diag
5 -rw- 1245 Nov 29 2012 13:45:52 startup.cfg
6 -rw- 19386224 May 07 2011 11:21:38 main.bin
7 -rw- 108 Mar 31 2012 16:25:50 patchstate
8 drw- - Aug 28 2012 17:04:30 seclog
36696 KB total (725624 KB free)
File system type of cfa0: FAT16