File and directory names

Double quotes around filenames are never allowed in the parameter for the REXX functions. In contrast to this, OS/2 commands always need double quotes around filenames if the name contains blanks or other special chars. This is also true for directory names.

The conclusion from this scenario:
Always save filenames and directory names inside your program without double quotes. Then use a function to add quotes to any filename(s) before using the name(s) as parameter(s) for OS/2 commands executed outside your program (see the routine ConvertNameToOS in the Template for a REXX program)


[Back: File, directory and device handling]
[Next: Output & Input control]