104
CAUTION:
Executing a batch file does not guarantee successful execution of every command in the batch file. If a
command has error settings or the conditions for executing the command are not satisfied, this command
fails to be executed, and the system skips to the next command.
Setting the file system operation modes
The file systems support the following operation modes:
•
alert
—The system warns you about operations that may cause problems such as file corruption and
data loss. To prevent misoperation, use the
alert
mode.
•
quiet
—The system does not prompt for any operation confirmation.
Follow these steps to set the file system operation mode:
To do…
Use the command…
Remarks
Enter system view
system-view
—
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 flash:/
0 -rw- 13308645 Mar 22 2011 11:34:07 main.bin
1 -rw- 7380 Mar 25 2011 10:47:36 patch-package.bin
2 -rw- 228 Mar 25 2011 10:50:39 patchstate
3 -rw- 3921 Apr 01 2011 17:56:30 startup.cfg
4 -rw- 151 Apr 01 2011 17:56:24 system.xml
515712 KB total (2521 KB free)
# Create new folder
mytest
in the test directory.
<Sysname> cd test
<Sysname> mkdir mytest
%Created dir flash:/test/mytest.
# Display the current working directory.
<Sysname> pwd
flash:/test
# Display the files and the subdirectories in the test directory.
<Sysname> dir
Directory of flash:/test/
0 drw- - Apr 01 2011 18:56:24 mytest
515712 KB total (2519 KB free)
# Return to the upper directory.