Recommended Posts

Posted (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 by MarginOfError
Remove personally identifying information
Posted

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.

Posted · 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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...