>
> We seem to have a problem executing a run command with visual foxpro 5.0:
>
> >From within VFP
> !copy file lpt1 && Seems to work fine
>
> >From a compiled exe
> !copy file lpt1 && Run command Failed
>
> Win95, Novell 4.11
> COMSPEC=Y:COMMAND.COM && Y Drive mapped to the DOS Ver with the proper
> command.com.
I generally call a .BAT file for this. The command in FoxPro is:
! PrintFil &lcFileName
PrintFil.BAT file contains:
@echo off
copy /b %1 lpt2
erase %1
exit