#M2MCHDIR – M2M File System Change Current Directory |
SELINT 2 | |
AT#M2MCHDIR=<path_name> |
Set command sets the current working directory in the current drive in the M2M file system.
Parameter: <path_name> – directory name, quoted string type (up to max 16 chars depending on current working directory, case sensitive) or relative path name, quoted string type (up to max 124 chars depending on current working directory, case sensitive) or absolute path name, quoted string type (max 124 chars, case sensitive)
Note: the directory name, relative path name or absolute path name should be passed between quotes; directory and path names are case sensitive.
Note: path separator can be either \ or /. Directory name begins with a character different from path separator and is relative to the current working directory. Relative path name begins with a character different from path separator and is relative to the current working directory. Absolute path name begins with path separator. System max path name length (current directory name length + file name length) is 128. System reserves 2 characters for internal use.
Note: if the directory name, relative path name or absolute path name <path_name> is not present an error code is reported.
Note: the current directory in the drive 0 in the M2M file system at every power on is \. | |
AT#M2MCHDIR? |
Read command reports the current working directory in the current drive in the M2M file system in the format:
#M2MCHDIR: <path_name>
Where: <path_name> – absolute path name, quoted string type (max 124 chars, case sensitive)
Note: path separator used in this report is \. | |
AT#M2MCHDIR=? |
Test command returns OK result code. | |
Example |
AT#M2MCHDIR? #M2MCHDIR: "\MOD" OK
AT#M2MCHDIR="dir1" OK
AT#M2MCHDIR? #M2MCHDIR: "\MOD\dir1" OK |