Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Registry shell to determine acrobat command
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joshua Barney  
View profile  
 More options Nov 6 2012, 10:36 am
From: Joshua Barney <j...@healthpac.net>
Date: Tue, 6 Nov 2012 07:36:25 -0800 (PST)
Local: Tues, Nov 6 2012 10:36 am
Subject: Registry shell to determine acrobat command

I am trying to shell out either Acrobat.exe or AcroRd32.exe depending on
which the workstation has installed. I want to be able to use the /N /T
operators to open and silently print a new instance of acrobat for each
file.
To determine which version the workstation has I am trying to shell out the
following command to save the value of the acrobat registry information so
that I can find out if the user's PC has either acrobat.exe or AcroRd32.exe
on their system for chaining PDF merges. From command line I would run:
REG QUERY
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Command

>C:\OUTGOING\josh.txt

the different commands that I have tried so far are:
      JOB = 'REG QUERY
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Command
>C:\OUTGOING\josh.txt'

      PRINT CHAR(27):CHAR(2):">":JOB:CHAR(13)
This runs but does not write the capture file
      PRINT CHAR(27):CHAR(2):"P":JOB:CHAR(13)
This errors out
      PRINT CHAR(27):CHAR(2):JOB:CHAR(13)
This crts EG QUERY
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Command

>C:\OUTGOING\josh.tx

Any suggestion for the inline operator would be great.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ed Clark  
View profile  
 More options Nov 6 2012, 10:51 am
From: Ed Clark <edcl...@aol.com>
Date: Tue, 6 Nov 2012 10:50:53 -0500
Local: Tues, Nov 6 2012 10:50 am
Subject: Re: [InterSystems-MV] Registry shell to determine acrobat command
You should probably ask this on Accuterm's support lists. but...
Look at Accuterm's documentation for the Shell() function. Your code needs to look something like this:

        CRT CHAR(27):CHAR(2):'P':'Shell("':JOB:'",opt)':CHAR(13)

On Nov 6, 2012, at 10:36 AM, Joshua Barney <j...@healthpac.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joshua Barney  
View profile  
 More options Nov 6 2012, 1:23 pm
From: Joshua Barney <j...@healthpac.net>
Date: Tue, 6 Nov 2012 10:23:17 -0800 (PST)
Local: Tues, Nov 6 2012 1:23 pm
Subject: Re: Registry shell to determine acrobat command

      JOB = ";REG QUERY
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Command

>C:\OUTGOING\josh.txt"

      PRINT CHAR(27):CHAR(2):">;REG QUERY
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Command

>C:\OUTGOING\josh.txt":CHAR(13)

Never got an answer back from accuterm but I kept tinkering and using ";"
will allow you to run the command prompt line and save the results

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »