Olá pessoal,
Ao executar o seguinte comando, o EXCEL abre o arquivo normalmente :
Runtime.getRuntime().exec("cmd /c start excel.exe " + "C:/temp/Planilha.xls");
Entretanto, ao tentar padronizar para abrir no Desktop, tentei utilizar :
Runtime.getRuntime().exec("cmd /c start excel.exe " + "C:/Documents and Settings/Guest/Desktop/Planilha.xls" );
Runtime.getRuntime().exec("cmd /c start excel.exe " + "C:/Documents%20and%20Settings/Guest/Desktop/Planilha.xls" );
Mas não aceita de jeito nenhum. ( Sei que o espaço é que está avacalhando )
O documento está naquela pasta, o EXCEL é chamado, mas não aceita o caminho.
Aluem sabe como resolver isso ?
+++