1) You're sure it doesn't allow absolute file names? In some cases it might be needed to use short path names instead of long path names. Or sometimes it requires you to enclose the file in quotes, and other times it explicitly doesn't.... Or maybe use a better converter
And you sure you didn't made the easy to make mistake of not doubling up the slashes? This is required in JScript. eg:
wrong: someFunction("C:\mydir\mycommand.exe")
correct: someFunction("C:\\mydir\\mycommand.exe")
If it indeed doesn't work with absolute file names, you could still execute the stuff in one go since the command line in Windows allows you to enter multiple commands on one line (using the & character). So you could still use the CD command before the LATEX command. eg:
oShell.Run("CD c:\\blahblah & LATEX -someparameter")
Another possebility is using piping. This is where (simulated human) input is redirected to the command. This might even also safe you from first creating an input file.
eg:
oShell.Run("echo $blahblah | C:\\mydir\\latex.exe")
(The $blahblah stuff will of course be the wrong syntax as it should be the same thing as when you manually type the stuff, but it's just an example of the principle using the echo command and piping (|) the output)
Then there is also maybe the possebility to use redirecting (using the < or > symbols) on the command line (though this does require a tex file).
Anyways, I'm sure it is possible to do everything in one go by using the proper DOS command line, without the use of any external files and batch files. The only question is how this LATEX tool exactly works and finding the proper syntax.
Therefor, can you provide a download link from where you got this LATEX command line tool? Then we can look into it and maybe give you the best solution. Or maybe even zip this latex command together with an example tex file and attach it to a post.
2) If you keep on using
oShell.Exec, you do need to use timers (in order to check if the process has finished - oExec.Status != 0). Otherwise the function is executed asyncroniously and further code will run before the function has finished.
3) - Patchou writes all his stuff himself from scratch.
- Yes, IntelliSense in the inline editor only works for the build in Plus! functions and events (unfortunatly).
3) oops 4)