java - Run cmd command without creating a .bat file -


Is there a way to execute a CMD command such as "move folder a folder b" and create a .bat file Without starting? It would be nice if it would work without making the files on HDD.

  runtime.gettime (.exec) (new string [] ("cmd.exe" , "/ C", "move", "DIA / ATT", "DIRB"});  

Comments