Retrieve name and other information for all files and subdirectories in a given directory and store it in a physical file in QTEMP. The contents of the file will be replaced with every call of this command within the same job. The file will be lost if you end the job.
*dir <directory>
directory
Fully qualified name of the directory from which the information is to be retrieved
0 Directory information successfully retrieved. Data has been stored in QTEMP/WE3DIR
1 Parameter error. No directory has been specified
2 Unable to retrieve directory information
3 Directory does not exist
DDS specification of the file WE3DIR:
R WE3DIR TEXT('WindowsEnabler/400 V3.5.1 dir')
FILENAME 255A TEXT('Long file name')
SHRTNAME 12A TEXT('8.3 file name')
FILESIZE 20S 0 TEXT('File size')
CRTTIME Z TEXT('File creation time')
ACCTIME Z TEXT('File last access time')
MODTIME Z TEXT('File modification time')
ARCHIVE 1S 0 TEXT('Attribute: Archive')
READONLY 1S 0 TEXT('Attribute: Read-only')
HIDDEN 1S 0 TEXT('Attribute: Hidden')
SYSTEM 1S 0 TEXT('Attribute: System')
ISDIR 1S 0 TEXT('Flag: Is directory')
This command returns a number to the STRWINPGM/STRWINSRV command, which identifies the PC operating system that WindowsEnabler is running on.