MarginOfError Posted June 16, 2011 Report Posted June 16, 2011 (edited) I'm using a program called MiKTeX, (a LaTeX type setting distribution) to create reports of my analyses. I run Windows 7. From within my analysis program, I call a system command texi2dvi --pdf --clean --quiet "H:/Projects/Rheumatology/p200840/graphs/2011-06-14/20110616_Wegeners.tex" which returns the message: "texi2dvi.exe: Windows API error 5: Access is denied." But when I run the same command from the command prompt, it works just fine. Any ideas how to get this to work from within my analysis software (R 2.12.2)? Edited June 16, 2011 by MarginOfError Remove personally identifying information Quote
MarginOfError Posted June 16, 2011 Author Report Posted June 16, 2011 Pam, you're a miracle worker! The guru actually helped. In case anyone is curious, it occurred to me that my default working directory was a protected folder. Once I changed the working directory, everything worked fine. Quote
slamjet Posted June 16, 2011 Report Posted June 16, 2011 Pam, you are everything to everyone! Amazing! Quote
DigitalShadow Posted June 18, 2011 Posted June 18, 2011 · Hidden Hidden It sounds like a file permissions issue. I'm not familiar with the program, but a few thoughts come to mind.1. Try running the program as administrator.2. I'm assuming H: is a mapped network path of some sort? If the program is using a windows service, it might not be able to see mapped network path. Try using the full network path instead of the mapped drive, i.e. \\computer-name\path\to\file.3. A quick googling, leads me to this quantlib.co.uk Blog Archive Yap error: Windows API error 5: Access is denied suggesting you should edit the permissions of C:\Apps\MiKTeX and give every user read/write to it and all subdirectories recursively.
Built Posted June 19, 2011 Report Posted June 19, 2011 You need to make all the directories read/write and run as an administrator or you will keep getting that error. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.