Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8841227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:39:40+00:00 2026-06-14T10:39:40+00:00

I am attempting to call pdflatex.exe on a file in a powershell script thus:

  • 0

I am attempting to call pdflatex.exe on a file in a powershell script thus:

    Out-File -FilePath C:\path\to\file\foo.txt -InputObject $bar -Encoding 'ASCII'
    texdoc.exe letter
    pdflatex.exe C:\path\to\file\example.tex
    latex.exe C:\path\to\file\example.tex
    pdflatex.exe 'C:\path\to\file\example.tex'
    latex.exe 'C:\path\to\file\example.tex'
    pdflatex.exe C:/path/to/file/example.tex
    latex.exe C:/path/to/file/example.tex
    pdflatex.exe 'C:/path/to/file/example.tex'
    latex.exe 'C:/path/to/file/example.tex'

The first line works, so there is no permissions problem. The second call works, so there is no problem accessing the binaries. None of the subsequent calls work. There are no pre-existing .ps, .dvi or .pdf files in the directory.

Calling from the powershell command-line works as expected with the same file (example.tex), but not from the script. Why? How can I view the error message thrown by pdflatex or latex? MikTex 2.9, Windows 7, Powershell 2.0.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:39:42+00:00Added an answer on June 14, 2026 at 10:39 am

    Probably not the most suitable answer, but I got around this by “cd-ing” into the relavant directory by using

        Set-Location -Path C:\path\to\file\
        pdflatex example.tex
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to call a function inside of a lua file called test2.lua This
I'm attempting to call a PHP script from a C++ program. For instance, here
I'm attempting to call a phtml file from Ajax on the homepage of my
I'm attempting to call a method on the ssdeep fuzzy.dll The .h file is
I am attempting to call a bash script from a TCL script and need
I am attempting to call a function but the error I am getting is
I'm attempting to call a function in the ROOT plotting package that accepts three
I'm attempting to call a stored proc on my local SQL Server (2008 R2)
I am attempting to call the Apache Commons StringUtils.join() method from within a Groovy
I'm using ASP.NET and attempting to call a method with a signature of [WebMethod]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.