>Hello
>
>I try to run arj.exe form C:\Program Files\ with parameters.
>
>Example : RUN C:\Program Files\ NameOfApp\arj.exe A C:\Program Files\NameOfApp\Asubfolder\NameOfArj.arj C:\Program Files\NameOfApp\Asubfolder\*.DB*
>
>But the arj.exe do not accept \Program Files\. When I run the same with \Progra~1\ it works. Somebody now if VFP has a function like CURDIR() that not return the exact path but the truncate dos path.
>
There are several issues here - ARJ doesn't handle LFNs at all. You could use the Scripting.FileSystemObject GetFile() method to get a file object; the File object has the Shortname of the filew as one of its members. You can't use the short name of indefinite (wildcarded) files to specify things, since Windows doesn't know about the short name conversioj. ARJ will not permit you to restore the LFN, since the mapping between the original file name and the short name is not preserved. The solution here is to use something else like the Zip format which does handle LFNs.
There's also a Win32 API call that can convert an LFN to a short name; yiu could use that to resolve the path and use the wildcarding below the LFN portion of the path. Look in the FAQ.