You have to enclose file names with spaces into double quotes. I'm not aware about any limit on the file name length though.
w_torep = [TO FILE "C:\TEST FILE.TXT" ASCII NOCONSOLE]
>
>I'm being extremely dumb today and cant work out the following:
>
>I have a report form command that we dynamically create so for instance;
>
>REPORT FORM (g_def+w_fname) &w_torep
>
>Where:
>g_def = “G:\PRODUCTS\PPWIN\DEV32\DATA\”
>w_fname = “REPORTS\R1875148”
>w_torep = “TO FILE 'C:\TEST.TXT' ASCII NOCONSOLE”
>
>This works fine but if the name of the file is more than 8 chars or has spaces it fails due to the macro substitution.
>
>So this fails:
>
>REPORT FORM (g_def+w_fname) &w_torep
>
>Where:
>g_def = “G:\PRODUCTS\PPWIN\DEV32\DATA\”
>w_fname = “REPORTS\R1875148”
>w_torep = “TO FILE 'C:\TEST FILE.TXT' ASCII NOCONSOLE”
>
>How can I change it so that it allows long file names?
>
>TIA
>
>Jon
--sb--