Hey there folks--
i'm trying to do the following:
this works fine unless the directory name contains a space(s) (like "C:\Program Files\...").. then i get a "command contains unrecognized command/keyword..." error.. i've also tried
COPY FILE "'"+&gcAppName+"'" TO "'"+&lcName+"'"
and inserting single quotes into gcappname directly, everything gives the same error.
where am i off? any thoughts?
thanks
--frank~
i'm trying to do the following:
Code:
gcHomeDirectory = JUSTPATH(SYS(16,0))
SET DEFAULT TO (gcHomeDirectory)
gcAppName = GETFILE("EXE","","",0,"Select Application")
lcName = JUSTFNAME(gcAppName)
COPY FILE &gcAppName TO &lcName
this works fine unless the directory name contains a space(s) (like "C:\Program Files\...").. then i get a "command contains unrecognized command/keyword..." error.. i've also tried
COPY FILE "'"+&gcAppName+"'" TO "'"+&lcName+"'"
and inserting single quotes into gcappname directly, everything gives the same error.
where am i off? any thoughts?
thanks
--frank~