C
Chris
All, I am having the hardest time trying to understand documentation
regarding Runtime.exec(); That is, I am writing a java app that needs
to make a call to another app via windows command prompt. The problem
I am having is I cant figure out how to open the correct directory and
then execute the command call (because of quotes in the argument of
the command call. See below).
The directory is located in: C:\Program Files\BLAST\BIOINFORMATICS
\apildoc
And the command (w/associated arguments) is: BIOCommand\text="Hello,
Bio Entry1: HT8867" /peptides="Sc12.92"
Does anyone have expertise in this area that could help me? Thank you
very much for your time.
import java.io.IOException;
public class CmdPrompt {
public static void main(String args[])
{
try {
String command = new String[]{"cd", "\"c:\\Program Files\
\BLAST\\BIOINFORMATICS\", "BIOCommand\text="Hello, Bio Entry1:
HT8867" /peptides="Sc12.92""};
Runtime.exec(command);
}
catch (IOException e)
{
}
}
}
regarding Runtime.exec(); That is, I am writing a java app that needs
to make a call to another app via windows command prompt. The problem
I am having is I cant figure out how to open the correct directory and
then execute the command call (because of quotes in the argument of
the command call. See below).
The directory is located in: C:\Program Files\BLAST\BIOINFORMATICS
\apildoc
And the command (w/associated arguments) is: BIOCommand\text="Hello,
Bio Entry1: HT8867" /peptides="Sc12.92"
Does anyone have expertise in this area that could help me? Thank you
very much for your time.
import java.io.IOException;
public class CmdPrompt {
public static void main(String args[])
{
try {
String command = new String[]{"cd", "\"c:\\Program Files\
\BLAST\\BIOINFORMATICS\", "BIOCommand\text="Hello, Bio Entry1:
HT8867" /peptides="Sc12.92""};
Runtime.exec(command);
}
catch (IOException e)
{
}
}
}