I am trying to execute a batch file in my Java application. The code is the following:
Runtime.getRuntime().exec("cmd /C start C:/Documents and Settings/Zatko/My Documents/Project-Workspace/IUG/external/apps/archive/run-server.bat");
When it executes, a error dialog appear telling "Windows cannot find 'C:/Documents'. make sure you typed the name corretly...."
When I execute with the same code another batch file, named file.bat and located in the C:/Temp folder, it works perfectly....
Does anyone know where the problem may be? Is it about spacing characters?
Thanks in advance