Hi Neil
How about
myfilepathname = "C:\CJ723.PDF"
lcpath="C:\Omniformat\omniformat.exe " + myfilepathname + " JPG"
RUN /N &lcpath
Hope it helps.
Just in case RUN is failing there is a fine utility in the download section by late Ed Rauh that avoid the pitfalls of RUN command.