i try run batch file in java, file performed not completely. code like: runtime.getruntime().exec("cmd /c call "+path); when try run manually, without java, batch works correct. batch file contains next code: cd c:\downloads\ if not exist documents mkdir documents move *.odt documents move *.doc documents if not exist archives mkdir archives move *.tar archives move *.gz archives if not exist music mkdir music move *.mp3 music java complete batch fifth line. has faced this? hm, batch , stoped again here . , java code: link . if add somename.ogg downloads folder, script goes next line. folders (archives, documents etc) exists, , downloads folder doesn't contain *.zip, *.tar, *.docx, *pdf files, these lines passed without problems. why stoped precisely @ ogg-line? i think problem there bug in batch script. msdn documentation if command states this: you cannot use if command test directly directory, null (nul) device exist in every director...