Product SiteDocumentation Site

8.59. SysRmDir


>>-SysRmDir(dirspec)-------------------------------------------><

Deletes a specified file directory without your confirmation.
Parameter:
dirspec
The directory that should be deleted.
Return codes:
0
Directory removal was successful.
Other
An error occurred. On Windows, a Windows System Error code (Section 8.1, “A Note on Error Codes”) is returned. This may be one of the following, but could be others.
2
File not found.
3
Path not found.
5
Access denied or busy.
16
Current directory.
26
Not a DOS disk.
32
Sharing violation.
108
Drive locked.
123
Invalid name.
145
Directory not empty.
146
Is Subst Path.
147
Is Join Path.
206
File name exceeds range.

Example 8.33. RexxUtil - SysRmdir

/* Code */
call SysRmDir "c:\rexx"