How to start microsof access with parameter through runtime.exec
843798Jan 22 2007 — edited Feb 2 2007Hi,
I try to start access with parameter like this:
String[] cmd = new String[4];
cmd[0] = "C:\\Programme\\Microsoft Office\\OFFICE11\\MSACCESS.EXE";
cmd[1]= "C:\\MyDB.mdb ";
cmd[2] = "/cmd";
cmd[3] = "parameter1 parameter2";
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(cmd);
However the access mdb startet but it seems not to take the parameter i want to put in to access.
Have anyone an Idea, what is wrong here?
Thanks