Windows 8 and 8.1 Forums


Open PDF File From Win8.1 32 Bit DOS Command Line Prompt

  1. #1


    Posts : 3
    Win 8.1 Pro

    Open PDF File From Win8.1 32 Bit DOS Command Line Prompt


    I need to be able to open PDF files from Win 8 32 bit DOS Command Line to complete a DOS macro for a document management database I've used for 20+ years.

    On XP Systems I simply have macro grab file name from database and type >Start "Path\filename.pdf"

    Does Windows 8.1 have a similar capability? I'm using ClassicShell.

    I understand that Start now opens another instance of cmd, but is there a work around to launch PDFs from command prompt and hand back control to DOS after file is open?

    Thank you,
    Tom

      My System SpecsSystem Spec

  2. #2


    It works for me if I call the program and pass it the PDF to open:

    Code:
    start "C:\Program Files (x86)\Foxit Software\Foxit Reader\FoxitReader.exe" ""C:\Program Files (x86)\Foxit Software\Foxit Reader\stamps\en_us\Sign Here\Accepted.pdf""
    Echo PDF is open and batch file has control back
    WHen I run the above batch file, the PDF opens and if I leave it open and switch to teh Command Prompt windows I see the Echo output indicating it got control back.
      My System SpecsSystem Spec

  3. #3


    Posts : 3
    Win 8.1 Pro


    I can duplicate your batch file call but it will only launch from windows, not from command line prompt.

    In other words, I created batch file following your instructions, but batch file will not launch pdf from command line c:\batch1.bat call.

    Am I missing something?

    Thank you.
    Tom
      My System SpecsSystem Spec

  4. #4


    Posts : 3
    Win 8.1 Pro


    Rich,

    I found my problem -- I'm using WordPerfect Shell DOS command to try to run batch file (or launch file directly as I was able to in the past with XP platform).

    As you correctly pointed out, I can launch any windows program directly from Win8 cmd command prompt -- so I now have a work around.

    Thank you very much for your help.

    Tom
      My System SpecsSystem Spec

  5. #5


    Great, glad you figured it out. I was scratching my head and going nowhere.
      My System SpecsSystem Spec

Open PDF File From Win8.1 32 Bit DOS Command Line Prompt
Related Threads
lam using windows 8. At first when l was opening command prompt it was using C:\Users\Software Developer> (Software Developer is my computer name) and l could easily access my desktop usingC:\Users\Software Developer>cd.. desktop l dont know what happened, now the command prompt by default is on...
I need to determine if there are command line parameters or switches to pass to Window's PDF reader App that would allow me to open a PDF to a specific page. I have a x86 database application that allows me to run command line scripts. The user presses a button which then opens a PDF to a specific...
How to Open an Elevated Command Prompt in Windows 8 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows graphical interface. This tutorial...
i just ran sfc scannow, it said "windows found corrupt files but was unable to fix some of them. I then restarted and ran "Dism health" command then it said “the restore operation was finished successfully. the component store corruption was repaired. The operation completed successfully.” I then...
I see that “Windows Explorer” has been replaced by “File Explorer”. I don’t see much difference, but I would like to have it open with the C: drive expanded in the left pane and folders shown in the right pane. Any update on the target command line to do that? I’ve tried… ...
How to Open a Command Prompt in Windows 8 and 8.1 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows graphical interface. This tutorial will...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook