e mò traduciti 'st'ultima risposta...
e sticazzi
e sticazzi
private static String RAFPath="data\\raf\\";
//("\\" is a single backslash)
//....jump....
LFSPath=txtLFSPath.getText(); //"C:\Documents and Settings\Ben\My Documents\LFS\LFS_S2_ALPHA_U"
LFSPath.replace('/','\\'); //I know this is basically not needed...
if(LFSPath.lastIndexOf('\\')!=LFSPath.length()-1)
{
LFSPath+='\\'; //"C:\Documents and Settings\Ben\My Documents\LFS\LFS_S2_ALPHA_U\"
}
//....jump....
File rafDir=new File(LFSPath+RAFPath); //"C:\Documents and Settings\Ben\My Documents\LFS\LFS_S2_ALPHA_U\data\raf\"
if(!rafDir.exists()) //This should evaluate as false, if it works in "Run..."
{
lblStatus.setText("RAF folder missing");
return;
}