Westermo MR Series User Manual

Page 363

Advertising
background image

363

6622-3201

Web Interface and Command Line Reference Guide

www.westermo.com

DIR List File Directory

7.2.3

The dir command is used to display the file directory. For example:

dir

direct

3360 ro 07:25:07, 03 Jan 2000

sbios 65536 ro 07:25:07, 03 Jan 2000

image 257508 rw 09:53:46, 20 Jan 2000

sregs.dat

400 rw 09:56:05, 20 Jan 2000

config.da0

76 rw 07:19:39, 21 Jan 2000

IR2140.web 80256 rw 22:13:25, 19 Jan 2000

OK

Each line shows the file name and extension (if any), the file size (in bytes), the read/write status (ro
= read only, rw = read/write) and the time/date of creation.

Note:

File write operations are carried out as a background task and can be relatively slow due to the
con straints of FLASH memory. As a result, the file directory may only be updated several sec-
onds after a particular file operation has been carried out.

You can also use wildcards with the dir command in order to narrow your search. The *character
can represent one or more characters in the filename. For example, dir fw*.txt will list only the
fw.txt and fwstat.txt files (if they are present on the Westermo).

FLOCK Lock Files

7.2.4

The flock command prevents any further writing to the FLASH memory. This means that no files
can be written to, added to or deleted from the filing system.

FUNLOCK Unlock Files

7.2.5

The funlock command unlocks the FLASH memory if it had been locked using the flock command.
Files can then be added, deleted or copied to the filing system.

MOVE Move File

7.2.6

The move command is used to replace one file with another whilst retaining the original filename.
The format is:

move <fromfile> <tofile>

For example, the command:

move NEW.WEB IR2140.WEB

will delete the file called “IR2140.WEB” and then rename the file called “NEW.WEB” as “IR2140.
WEB”.

REN Rename File

7.2.7

The ren command is used to rename files in the filing system. The format is:

ren <oldfilename> <newfilename>

Advertising
This manual is related to the following products: