I want to execute a command in my java program using below function.

Process p = Runtime.getRuntime().exec();

My command om cmd prompt looks something like

C:\Program...