Hi All,
I am using the following codeline to run a cmd from cmd prompt.
Process p1 = Runtime.getRuntime().exec("cmd.exe /k start vgnimport....
I have my structure like
Class A
B importcmd = new B();
importcmd.startimp();
sysout("out of cmd prompt");
Class B
startimport()
{
Process p1 = Runtime.getRuntime().exec("cmd.exe /k start vgnimport....
sysout("here is ur output");
}
In this case entire code of class B gets executed .i.e.the statements after i fire exec cmd
But in Class A nothing gets executed once i call this class...
Can anybody help me out of this..
Thanks in advance