Reading Command Line
How to read the DOS command line by JAVA.
for example when i type on DOS DIR, want to save all output to Text file.
Thanks and best regards
I found somthing to help, but i need to make a process which let me to type a command into the Concole and the output will appeare like i am working with Dos Wndows ( Start--> Run--> cmd)
Thanks and best regards
Similar Messages
-
Acrobat reader command line switch - password
Hello everybody,
I am a developer for macromedia director applications.
I need to open a password protected PDF-file from within a
director-projector-application with any suitable
xtra-extension (not the
problem discussed here!).
all I would need is the complete command line for acrobat
reader to do
this.
A complete list of command line switches for Acrobat Reader
would be helpful
in respect to further needs.
where can i get this.
By the way, the solution for Windows and Mac OS would be
welcome. Are they
the same?
Thanks
Peter GrambitterHello everybody,
I am a developer for macromedia director applications.
I need to open a password protected PDF-file from within a
director-projector-application with any suitable
xtra-extension (not the
problem discussed here!).
all I would need is the complete command line for acrobat
reader to do
this.
A complete list of command line switches for Acrobat Reader
would be helpful
in respect to further needs.
where can i get this.
By the way, the solution for Windows and Mac OS would be
welcome. Are they
the same?
Thanks
Peter Grambitter -
Read command line arguments with an ActiveX step
Hi
I would like to read the command line parameters from TestStand startup. I did find an ActiveX resulting in a Object Reference (See Locals.CommandsRef). How do I use this reference to really get the arguments and their count? See also screenshot.
Solved!
Go to Solution.
Attachments:
Screenshot.jpg 160 KBHi Paulus,
Via this link, you find an forumthread that describes the same issue. testStand does not support this, but there is a workaround. Attached you find the code.
The attachment includes a LV vi with the command line. If you doen't use Labview, here is the command line:
C:\Program Files (x86)\National Instruments\TestStand 2012\Bin\SeqEdit.exe /goto "Parameter1 = test" /runEntryPoint "Test UUTs" D:\Testsequence.seq
Regards,
Bas
Attachments:
Command line TestStand.zip 10 KB -
Acrobat Reader command line problem
In windows xp professional I'm programatically creating a batch file and executing it (shell command in visual basic) to convert pdf files to Microsoft xps.
The batch command looks like this one:
"C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" /t "D:\MyDir\Microsoft XPS Document\x.pdf" "Microsoft XPS Document Writer" /t "D:\MyDir\Microsoft XPS Document\x.xps".
When the user logged in on the machine is an administrator, acrobat reader does the operation silently. When a normal user (not belonging to administrators group) is logged in on the machine, acrobat reader opens the save as dialog window requiring user interaction.
The normal user has full control over the destination directory. I already tested giving the normal user full control over AcroRd32.exe and over cmd.exe with no success. I also tried in visual basic 2008 executing the command through System.Diagnostics.Process.Start with the exact same curious results.
Can someone help.
Thank you.Hi.
I couldn't find a solution within Adobe for the problem I reported Oct 9, 2012, so I went to a fallback solution aimed to complete the needed stages. I'm posting here the visual basic 2008 code I wrote then. It is not a graceful solution and has some coarse code but was designed as part of an application that must keep processing files without user intervention. The procedure "followAcroRd32PDFtoXPS" must be called after the execution of a batch command like the described in the previous post:
Module fallback
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hwndParent As Integer, ByVal hwndChildAfter As Integer, ByVal lpszClass As String, ByVal lpszWindow As String) As Integer
Declare Function GetDlgCtrlID Lib "user32" (ByVal hDlg As Integer) As Integer
Declare Function SendDlgItemMessage Lib "user32" Alias "SendDlgItemMessageA" (ByVal hDlg As Integer, ByVal nIDDlgItem As Integer, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As String) As Integer
Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
Const WM_SETTEXT = &HC
Const BM_CLICK = &HF5
Function FileInUse(ByVal filepath As String) As Boolean
Dim f001 As Integer
If System.IO.File.Exists(filepath) Then
Try
f001 = FreeFile()
FileOpen(f001, filepath, OpenMode.Binary, OpenAccess.ReadWrite, OpenShare.LockReadWrite)
FileClose(f001)
Catch
Return True
End Try
End If
End Function
'outpfile <-- path to the XPS Document to be created
'starttime <-- system date and time when the batch command line was executed
Sub followAcroRd32PDFtoXPS(ByVal outpfile As String, ByVal starttime As System.DateTime)
Dim p As System.Diagnostics.Process, q As System.Diagnostics.Process, proc() As System.Diagnostics.Process
Dim i As Integer, j As Integer
Dim l As Long, memusage() As Long
Dim t000 As System.DateTime
Dim t999 As System.DateTime
Dim hwnd As Integer, lObjhWndTB As Integer, lObjhWndBu As Integer
Dim nIDDlgItem As Integer
Dim resu As Integer
dim maximumacrobatwaittime = 60 'seconds
dim memoryusageinactivity = 12 'seconds
dim acrord32pdftoxpstimelimit = 12 'seconds
'Identify necessary Adobe Reader process
t000 = DateTime.Now
Do
System.Threading.Thread.Sleep(1000)
i = 0
For Each p In System.Diagnostics.Process.GetProcesses
If LCase(p.ProcessName) = LCase("AcroRd32") Then
If Not p.StartTime < starttime Then
ReDim Preserve proc(i)
proc(i) = p
i = i + 1
End If
End If
Next
If i > 0 Then Exit Do
t999 = DateTime.Now
If DateDiff(DateInterval.Second, t000, t999) > maximumacrobatwaittime Then
Exit Sub
End If
Loop
'Identify necessary window
t000 = DateTime.Now
Do
System.Threading.Thread.Sleep(1000)
hwnd = FindWindow(vbNullString, "Save the file as")
If hwnd <> 0 Then
Exit Do
End If
t999 = DateTime.Now
If DateDiff(DateInterval.Second, t000, t999) > maximumacrobatwaittime Then
Exit Sub
End If
Loop
'Send click message to button save
t000 = DateTime.Now
Do
System.Threading.Thread.Sleep(1000)
lObjhWndTB = FindWindowEx(hwnd, 0, "ComboBoxEx32", "")
If Not lObjhWndTB = 0 Then
nIDDlgItem = GetDlgCtrlID(lObjhWndTB)
resu = SendDlgItemMessage(hwnd, nIDDlgItem, WM_SETTEXT, 0, outpfile)
If resu > 0 Then
lObjhWndBu = FindWindowEx(hwnd, 0, "Button", "&Save")
If Not lObjhWndBu = 0 Then
resu = PostMessage(lObjhWndBu, BM_CLICK, 0, 0)
If Not resu = 0 Then
Exit Do
End If
End If
End If
End If
t999 = DateTime.Now
If DateDiff(DateInterval.Second, t000, t999) > maximumacrobatwaittime Then
Exit Sub
End If
Loop
'Adobe Reader eventually will enter inactivity after printing to XPS Document
ReDim memusage(0)
Do
System.Threading.Thread.Sleep(1000)
ReDim Preserve memusage(UBound(memusage) + 1)
For Each p In proc
p.Refresh()
memusage(UBound(memusage)) = memusage(UBound(memusage)) + p.WorkingSet64
Next
If Not UBound(memusage) < memoryusageinactivity Then
j = 0
l = memusage(UBound(memusage))
For i = UBound(memusage) - 1 To UBound(memusage) - memoryusageinactivity + 1 Step -1
If l = memusage(i) Then j = j + 1
Next
Select Case j
Case memoryusageinactivity - 1
Exit Do
Case Else
End Select
End If
Loop
'Wait for the new XPS Document
t000 = DateTime.Now
Do
System.Threading.Thread.Sleep(1000)
Select Case My.Computer.FileSystem.FileExists(outpfile)
Case True
If Not FileInUse(outpfile) Then Exit Do
Case Else
End Select
t999 = DateTime.Now
If DateDiff(DateInterval.Second, t000, t999) > acrord32pdftoxpstimelimit Then
Exit Do
End If
Loop
'Kill Adobe Reader process
For Each p In proc
p.Refresh()
Try
p.Kill()
Catch ex As Exception
End Try
Next
'Kill eventual MS Windows error reporting system process
For Each p In System.Diagnostics.Process.GetProcesses
If LCase(p.ProcessName) = LCase("WerFault") Then
If LCase(p.MainWindowTitle) = LCase("Print driver host for 32bit applications") Then
For Each q In System.Diagnostics.Process.GetProcesses
If LCase(q.ProcessName) = LCase("splwow64") Then
Try
q.Kill()
Catch ex As Exception
End Try
End If
Next
Try
p.Kill()
Catch ex As Exception
End Try
End If
End If
Next
End Sub
End Module -
Adobe reader command line search
Hello everyone,
I am opening a PDF file using command line arguments and perform a search.
My command looks like this:
"C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /A search="word" "C:\File.pdf"
The command is working, but I have the issue that it looks like the search is only performing with option "Match whole words only".
Does anybody know if I can change this option for command line search to get all search results?
Thanks in advance.
Regards,
ajay311Does anyone have an idea?
Thanks! -
Trying SSH CLI , reading command line method is infinte loop problem!
I am trying excute command and reading result. but reading result part has problem.
below source is a part of my method.
try{
SessionChannelClient sessionChannel = ssh.openSessionChannel();
sessionChannel.startShell();
OutputStream out = sessionChannel.getOutputStream();
String cmd = s + "\n";
out.write(cmd.getBytes());
out.flush();
InputStream in = sessionChannel.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(in));
byte buffer[] = new byte[255];
String read= "";
while (true) {
String line = br.readLine();
if (line == null)
break;
str += line;
str += "\n";
System.out.print(str); //print result
sessionChannel.close();
in.close();
out.close();
}catch(IOException ee){
System.out.println(ee);
}finally{
System.out.println("=============end cmd=============");
while loop has problem. While statement has infinite loop problem.
why has this problem?
anybody, help me please. Thanks for reading .
Edited by: BreathAir on Aug 5, 2008 12:16 AMThat loop will loop until readLine() returns null, which will only happen when the other end closes its end of the connection, and it will block while no data is available.
-
What do these Reader command line parms mean?
--channel=4956.0037FA0C.303535326
--type=renderer
/o /eo /l /b /w 984644 /id 1476
TIA, PeteThat did the job!....Thanks so much!!!
seeren wrote:
Those indicate control surfaces. Go into control surface setup to change color or delete those which you may have inadvertantly configured or don't use anymore. Right click on the header to configure header and deselect the box that shows those, if you want.
Message was edited by: Torrid41 -
Invoke Labview applicatio​n from Command line
hi,
I have a labview program which does some analysis on my Test data.
My application is that,i have a Test sequencer program(Different application) which collects data and stores it in .dat file.
After this i invoke exe of Labview Analysis program from Test sequencer & i enter the Test data filename as a command line argument.
My first step in analysis program is read command line argument(thru App.Args property) & get filename(the command line gives array output , index 0 will be Labview,index 1 will show filename)
This works absolutely fine.
I made a copy of this analysis prog to include some more functionalities and renamed it as different Labview program(prog structure is same) & trying to do the same abovesaid process.
But somehow im not able to get Command line arg(basically here filename) passed to labview.
The error im getting is that it's showing the path of my application (say if my application is in C)."C:\xxxx.dat is not a LABVIEW data file".
My question is:
Is there any settings changes to be done for Command line args property node when we make a copy from one prog to other prog.? Im not having clue why this should occur?
-MuraliJust to confirm I understand what you are asking... you copied the App.Args property from one vi to another, compiled the new vi to an exe, new exe doesn't receive the command line parameters.
Did you make sure the "Pass all command line arguments to application" check box (in the 'Advanced' category of the application builder) was checked for the new application?
Troy
CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
Beware of the man who won't be bothered with details. - William Feather
The greatest of faults is to be conscious of none. - Thomas Carlyle -
Problem with tokenized input from command line
I am trying to take an input from the command line, parse it to tokens and perform whatever operation is needed depending on the name of the token, on a binary tree of stacks for example, if i type 1 2 1 3 printLevelOrder, then the root of the tree should have 3, 2,1 in the stack, the left child should have 1 and the right child should be empty. and then a level order print of the tree should be performed.
however what is happening when i run this code is the numbers are being put into the right stacks of the tree, but any commands such as printLevelOrder or PrintPopRoot are entering the code that is for placing numbers onto the stack instead of executing that command and skipping past this piece of code.
so my question is, why is the if statement if (word =="printLevelOrder") not being executed when thats whats in the word ?
example input and output shown below code fragment.
try {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line = "";
while (line != "***") {
System.out.print("> prompt ");
line = in.readLine();
StringTokenizer tokenizer = new StringTokenizer(line," ");
String word = new String();
while (tokenizer.hasMoreTokens()) {
word = tokenizer.nextToken();
boolean notCommand = true;
if (word =="printLevelOrder") {
theTree.printLevelOrder();
System.out.println("(word ==printLevelOrder)");
notCommand=false;
if (word == "printPopLevelOrder") {
theTree.printPopLevelOrder();
notCommand=false;
if (word == "printPopInorder") {
theTree.printPopInorder();
notCommand=false;
if (word == "printPopPreorder") {
theTree.printPopPreorder();
notCommand=false;
if (word == "printPopRoot") {
theTree.printPopRoot();
notCommand=false;
if (word == "***") {
notCommand=false;
if (notCommand == true) {
System.out.println("(notCommand == true)");
boolean notPlaced = true;
int v = 1;
while ((notPlaced==true) && (v < theTree.size())) {
if (theTree.element(v).isEmpty()) {
theTree.element(v).push(Integer.valueOf(word));
System.out.println("Inserting"+word);
System.out.println("in empty stack at location: "+v);
notPlaced=false;
if (notPlaced==true) {
if ( Integer.valueOf(word) >= Integer.valueOf( theTree.element(v).top().toString() ) ) {
theTree.element(v).push(Integer.valueOf(word));
System.out.println("Inserting"+word);
System.out.println("in stack at location: "+v);
notPlaced=false;
v++;
}valid inputs: int value, printLevelOrder, printPopLevelOrder, printPopInorder, p
rintPopPreorder, printPopRoot, *** to quit
prompt 1 3 2 4 2 printLevelOrder(notCommand == true)
Inserting1
in empty stack at location: 1
(notCommand == true)
Inserting3
in stack at location: 1
(notCommand == true)
Inserting2
in empty stack at location: 2
(notCommand == true)
Inserting4
in stack at location: 1
(notCommand == true)
Inserting2
in stack at location: 2
(notCommand == true)
Exception in thread "main" java.lang.NumberFormatException: For input string: "printLevelOrder"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.valueOf(Integer.java:553)
at TreeStack.main(TreeStack.java:73)
Press any key to continue . . .lol aww, shame that you forgot to do that. i had 10 / 10 for mine, and seing as the deadline is now well and trully over,
here is the entire source for anybody who was following the discussion or whatever and wanted to experiment.
additional files needed >
http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/Stack.java
http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/ArrayStack.java
http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/StackEmptyException.java
http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/StackFullException.java
/*TreeStack.java - reads command line input of values and assigns them to stacks in a binary tree and performs
operations on the ADT. valid inputs: <int>, printLevelOrder, printPopLevelOrder,
printPopInorder, printPopPreOrder, printPopRoot. Terminates on invalid input.
Written by George St. Clair.
S/N:0208456 22/11/2005
import java.util.Vector;
import java.io.*;
import java.util.StringTokenizer;
public class TreeStack {
private final int TREE_CAPACITY = 7 + 1;
private final int STACK_CAPACITY = 10;
Vector tree = new Vector(TREE_CAPACITY) ;
//collect input from command line, add values to stacks at nodes of the teee
//and perform required operations on the treestack
public static void main (String [] args) {
//create a tree of stacks
TreeStack theTree = new TreeStack ();
try {
//collect standard input
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line = "";
while (line != null) {
System.out.print("");
line = in.readLine();
//tokenise input
StringTokenizer tokenizer = new StringTokenizer(line," ");
String word = new String();
while (tokenizer.hasMoreTokens()) {
//assign word to the token
word = tokenizer.nextToken();
boolean notCommand = true;
//perform operation on treestack depending on what word is
if (word.equals("printLevelOrder")) {
System.out.println("printLevelOrder");
theTree.printLevelOrder();
notCommand=false;
if (word.equals("printPopLevelOrder")) {
System.out.println("printPopLevelOrder");
theTree.printPopLevelOrder();
notCommand=false;
if (word.equals("printPopInorder")) {
System.out.println("printPopInorder");
theTree.printPopInorder();
notCommand=false;
if (word.equals("printPopPreorder")) {
System.out.println("printPopPreorder");
theTree.printPopPreorder();
notCommand=false;
if (word.equals("printPopRoot")) {
System.out.println("printPopRoot");
theTree.printPopRoot();
notCommand=false;
//if word was not a command it must be a number
if (notCommand == true) {
boolean notPlaced = true;
int v = 1;
//starting at the root, find suitable place for number
while ((notPlaced==true) && (v < theTree.size())) {
//if the stack at v is empty, number goes here
if (theTree.element(v).isEmpty()) {
theTree.element(v).push(Integer.valueOf(word));
System.out.println("inserting: "+word);
System.out.println("in empty stack at location: "+(v-1));
notPlaced=false;
//if the stack is not empty
if (notPlaced==true) {
//if the value on the top of the stack is smaller than number, number goes onto the stack
if ( Integer.valueOf(word) > Integer.valueOf( theTree.element(v).top().toString() ) ) {
theTree.element(v).push(Integer.valueOf(word));
System.out.println("inserting: "+word);
System.out.println("in stack at location: "+(v-1));
notPlaced=false;
//if that node was no good, check the next one for suitability
v++;
catch (Exception e) {
//occurs when user inputs something that is neither a command, or a number, or upon EOF, or stack is full
public TreeStack () {
//create the TreeStack ADT by adding stacks in the vector, note vector 0 is instantiated but not used.
for (int i = 1;i<=TREE_CAPACITY;i++)
tree.add(new ArrayStack(STACK_CAPACITY));
public int size() {
//return the size of the tree +1 (as 0 is not used)
return tree.size();
public ArrayStack element (int v) {
//return the ArrayStack at v
return (ArrayStack)tree.get(v);
public int leftChild (int v ) {
//return left child of v
return v*2;
public int rightChild (int v ) {
//return the right child of v
return v*2+1;
public boolean children (int v ) {
//search for children of v and return true if one exists
for (int i =v;i<size();i++) {
if (i/2==v ) {
//left child found at i
return true;
if ((i-1)/2==v ) {
//right child found at i
return true;
//no children found
return false;
public boolean isInternal (int v ) {
//test whether node v is internal (has children)
if (children (v)== true) {
//has children
return true;
return false;
//print the top value in each stack encountered on a level-order traversal of tree
public void printLevelOrder() {
//for every node of tree v
for (int v = 1;v<size();v++) {
if (!element(v).isEmpty() ) {
//print the top value in stack v
System.out.println(" "+element(v).top());
else {
//stack at v is empty
System.out.println(" -");
//pop off and print the top value in each stack encountered on a level-order traversal of tree
public void printPopLevelOrder () {
//pop off and print the top value in stack v
for (int v = 1;v<size();v++) {
//for each node of tree v
if (!element(v).isEmpty() ) {
//if v isnt empty print the top value in stack v
System.out.println(" "+element(v).top());
//pop the top value in the stack at v
element(v).pop();
else {
//stack at v is empty
System.out.println(" -");
//pop off and print the top value in each stack encountered on an in-order traversal of tree
public void printPopInorder () {
printPopInorder (1);
public void printPopInorder (int v) {
boolean isInternal = false;
if (isInternal (v)) {
//use a boolean for isInternal to save on running the method twice
isInternal = true;
//recursively search left subtree
printPopInorder (leftChild(v));
//pop off and print the top value at v
if (element(v).isEmpty() ) {
//stack at v is empty
System.out.println(" -");
else {
//if v isnt empty print the top value in stack v then pop
System.out.println(" "+element(v).top());
element(v).pop();
if (isInternal ) {
//recursively search right subtree
printPopInorder (rightChild(v));
//pop off and print the top value in each stack encountered on an pre-order traversal of tree
public void printPopPreorder() {
printPopPreorder(1);
public void printPopPreorder(int v) {
//pop off and print the top value at v
if (!element(v).isEmpty() ) {
//if v isnt empty print the top value in stack v then pop
System.out.println(" "+element(v).top());
element(v).pop();
else {
//stack at v is empty
System.out.println(" -");
if (isInternal (v)) {
//recursively search left and right subtrees
printPopPreorder (leftChild(v));
printPopPreorder (rightChild(v));
//pop off and print all values from the stack at the root
public void printPopRoot (){
//while the root stack has values left
while (!element(1).isEmpty()) {
//print, then pop
System.out.println(" "+element(1).top());
element(1).pop();
} -
Retrieving command line parameters
How I can retrieve the command line parameters generated by following JSP?
<HTML>
<Head>
<Title> Reading command line parameters </title>
</head>
<Body>
<P><H1> Press here to try the test command line string</H1></P>
</body>
</html>
Zulfihi,
ur url should have a name/value pair
something like this
thread.jsp?forum=45&thread=279067
and then get these values from request object.
vasanth -
Question about reading a string or integer at the command line.
Now I know java doesn't have something like scanf/readln buillt into it, but I was wondering what's the easiest, and what's the most robust way to add this functionality? (This may require two separate answers, sorry).
The reason I ask is because I've been learning java via self study for the SCJA, and last night was the first time I ever attempted to do this and it was just hellish. I was trying to make a simple guessing game at the command line, I didn't realize there wasn't a command read keyboard input.
After fighting with the code for an hour trying to figure it out, I finally got it to read the line via a buffered reader and InputStreamReader(System.in), and ran a try block that threw an exception. Then I just used parseInt to get the integer value for the guess.
Another question: To take command line input, do you have to throw an exception? And is there an easier way to make this work? It seems awfully complicated to take user input without a jframe and calling swing.
Edited by: JGannon on Nov 1, 2007 2:09 PM1. Does scanner still work in JDK1.6?Try it and see. (Hint: the 1.6 documentation for the class says "Since: 1.5")
If you get behaviour that doesn't fit with what you expect it to do, post your code and a description of our expectations.
2. Are scanner and console essentially the same thing?No.
Scanner is a class that provides methods to break up its input into pieces and return them as strings and primitive values. The input can be a variety of things: File InputStream, String etc (see the Scanner constructor documentation). The emphasis is on the scanning methods, not the input source.
Console, on the other hand, is for working with ... the console. What the "console" is (and whether it is anything) depends on the JVM. It doesn't provide a lot of functionality (although the "masked" password input can't be obtained easily any other way). In terms of your task it will provide a reader associated with the console from which you can create a BufferedReader and proceed as you are at the moment. The emphasis with this class is the particular input source (and output destination), not the scanning.
http://java.sun.com/javase/6/docs/api/java/util/Scanner.html
http://java.sun.com/javase/6/docs/api/java/io/Console.html -
We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer."C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>". Current Situation: The above command line parameter when executed is working as expected in a User's Workspace. When executed in a command line on the Application Server is working as expected. But, the same is not working while executing it from Deployed environment.Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2. Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.
This is the Acrobat.com forum. Your question will have a much better chance being addressed in the Acrobat SDK forum.
-
Adobe Reader 11 (XI) won't open file via command line
Hello,
I have posted this question to probably inapropriate topic earlier today, so I am repeating it again.
I installed newest Adobe Reader XI today and when I tried to open certain pdf file via command line, it reported a syntax error. Now, this syntax worked so far on versions 9 and 10 (I checked today with them and it is working), so my question is - where can I find new syntax, if there is any? Googling didn't help. Or what else could wrong?
In previous versions I was able to open pdf file (on page 5) like this (all was taken from Help file "Open parameters")
"CompletePathToAdobeReader"/A"page=5""CompletePathToPDF",
ie
"C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"/A"page=5""d:\V2\DataSheet.pdf"
but now - not that it doesn't open specific page, but it doesn't want to open file at all.
edit:
Operating systems running: Windows 7, Windows XP
Thank you.
Message was edited by: v604Yes, it reported correctly becuase there is a syntax error in your command. Try spaces between the /A switch and open parameter. Try this:
"C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /A "page=5" "d:\V2\DataSheet.pdf"
Hope this helps.
-Sumit -
Help for Acrobat Reader 7.0.9 for AIX run in command line
I have a batch job, will call acrobat reader to convert pdf format to ps, then print it to printer.
cat test.pdf | /usr/bin/acroread -toPostScript | pdpr -dPRNTEST
the problem is, my AIX desnot support X Window,
How to setup DISPLAY value, so, I can call acroread in command line
$ /usr/bin/acroread
(acroread:17382): Gtk-WARNING **: cannot open display:
I saw some reply before, this version 7, need setup DISPLAY, but I login by SSL, without X Windown support, How can I setup this DISPLAY value?
Thanks a lot.I sort my problem, this may be not the best solution, <br /><br />I review last few replies, try to understand what go wrong, it may be 7.0.9 weakness - <br /><br />mysolution:<br />install xwing on my PC<br />login AIX 5L server by putty<br />#export DISPLAY=<myipaddressxxx.xxx.xxx.xxx>:0.0<br /><br />then, <br />#acroread -toPostScript a.pdf a.ps<br /><br />Works:-)
-
How to open url in acrobat reader using command line
Hi,
I need to open file from url using command line, but I'm still getting some error (wrong filename).
I've tried for example this command:
AcroRd32.exe http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf
Can anyone help me and tell me what's wrong?You can't use a URL as parameter for AcroRd32.exe.
Maybe you are looking for
-
Itunes freezes in windows vista
i have a 32 bit os which i've read is not a problem. can anyone help me? itunes will maybe allow me to copy maybe one track onto ipod, then will not only freeze but i can't close or anything. plz help.
-
Stock Transport Order between Two Company codes
Dear All Scenario-- Stock transport order Between two company codes. The valuation of Comapny Codes is at Moving Average Price. I have a scenario MAP of Issuing Plant-- Rs. 10 / kg I am able to pick up the price of Rs.10 (MAP) of issuing plant while
-
Help with time machine back up
hey guys im having a serious issue with my logic pro. ive only noticed it since ive started a new project and wanted to use some factory instruments in the exs. basically it cause logic to just crash when i try to open them and gives me this message,
-
Receiver Determination and Interface Determination
Hi, Please, can anyone explain what is the concept of 'Receiver determination' and 'Interface Determination'? Thanks, Harikumar. S
-
The aim is to mount any usb storage (say, not mine one) with write rights for normal user. So, use cases with fstab and udev automounting are not acceptable. OK, I have found this https://wiki.archlinux.org/index.php/US - ge_Devices wiki page and hav