public class Programm {
public static void main(String[] args) throws IOException {
String eing, pfad_r;
boolean repeat = true;
Date dt = new Date();
aktPFAD find = new aktPFAD();
KETTE liste = new KETTE();
pfad_r = System.getProperty("user.dir");
System.out.println("! aktuelles Arbeitsverzeichnis: " + pfad_r + "\n");
System.out.println("! ( h ) für Hilfe !" + "\n");
find.listDir();
while(repeat) {
try {
BufferedReader in = new BufferedReader(new InputStreamReader( System.in ));
System.out.print(dt + "\\> ");
eing = in.readLine();
StringTokenizer st = new StringTokenizer(eing);
String sr1 = (st.hasMoreTokens() ? st.nextToken() : null);
char asw = sr1.charAt(0);
switch (asw) {
case 'w': FORMAT.writesuperblock();
liste.speichern();
Runtime.getRuntime().exec("d:\\Eclipse\\Programm\\java progamm");
System.exit(0);
break;
case 'q': FORMAT.writesuperblock();
liste.speichern();
System.exit(0);
}
}
catch(Exception noentry) { }
}
}
}