The clear file command configures the function that the specified file or folder in the host used for the user to access the internal network resources is cleared when the user exits from the virtual gateway.
The undo clear file command disables the function that the specified file or folder in the host used for the user to access the internal network resources is cleared when the user exits from the virtual gateway.
| Parameter | Description | Value |
|---|---|---|
| file-name | Specifies the file or folder path to be deleted. | The value is a string of 1 to 127 case-insensitive characters. It supports two wildcards, asterisk (*) and question mark (?). The beginning of the path supports the Table of Contents Macros %USERPROFILE% and %Temp%. |
| subdirectory | Indicates the sub-folder. If this parameter is configured, all folders in the path are deleted; if this item is not configured, the files in the path are deleted, but the folders remain. | - |
You need to enable the cache clearing function before running the clear file command.
For example, to delete 1.txt from the route directory of disk C, you can either enter C:\1.txt or use the directory macro, that is, enter %HOMEDRIVE%\1.txt.
To delete files whose extensions are tmp from the Temp folder, you can either enter C:\Documents and Settings\Administrator\Local Settings\Temp\*.tmp or use the directory macro, that is, enter %TEMP%\*.tmp.
Asterisk (*) |
It is used to replace zero or more characters. For the file to be deleted, if you only know that the file name contains the letters temp, but do not know other parts of the file name, you can enter the characters *temp*. As a result, all types of files with the file names containing temp such as Intenettemp.txt and extemper.doc are deleted. |
Question mark (?) |
Can be used to replace zero or a single character. For example, if you enter temp?.doc, the deleted file may be temp.doc or temp1.doc, but not temper.doc. |
%USERPROFILE% |
It is the folder of the current user. If the system is installed on disk C, the path is C:\Documents and Settings\<user name>. |
%Temp% |
It is the system temporary folder. If the system is installed on disk C, the path is C:\Documents Settings\<user name>\Local Settings\Temp. |