>>>XP COPY command /D switch allows decrypt file automatically.
>>
>>Ok, how about
>>
RUN COPY myFile /D
>
>1. This causes a flashing DOS window
RUN /N
>2. This invokes command interpeter and thus is very slow.
Faster than not working at all, da?
>3. The max lenght of RUN command line is 128 characters.
>Copy must have 2 file names in command line.
>My windows temp directory and other file names are longer than 64 characters sometimes so this breaks a max RUN command line lenght.
>4. It is impossible to catch error if copy fails.
Both of these can be handled with a batch file that checks the errorlevel and, if neccessary, creates a semaphore to let VFP know what happened. I don't know if there's a more direct way to return the results to VFP than creating a semaphore.