T
Tomas
Hi,
I have an java application that can launch windows files with theese code
lines that a nice person here provided me with:
public static final void openFileAndExecuteAssociatedApplication(String fullPathAndFileName)
{
try
{
Process p = Runtime.getRuntime().exec("cmd /c start " + fullPathAndFileName);
p.waitFor();
}
catch (Throwable ex){ex.printStackTrace();}
}
But if there is blank spaces in folder names(i.e e:\my files\test.txt)) the
system cant find the file and gives this errormessage:
"Cannot find the file 'e:\my'...."
Any suggestions how to solve this issue?
Regards
/Tomas
I have an java application that can launch windows files with theese code
lines that a nice person here provided me with:
public static final void openFileAndExecuteAssociatedApplication(String fullPathAndFileName)
{
try
{
Process p = Runtime.getRuntime().exec("cmd /c start " + fullPathAndFileName);
p.waitFor();
}
catch (Throwable ex){ex.printStackTrace();}
}
But if there is blank spaces in folder names(i.e e:\my files\test.txt)) the
system cant find the file and gives this errormessage:
"Cannot find the file 'e:\my'...."
Any suggestions how to solve this issue?
Regards
/Tomas