1234567891011121314151617 |
- if (fileexists("temppath.txt")) {
- temppath = read("temppath.txt");
- len = length(temppath);
- temppath = substring(temppath,1,len-2);
- cd(temppath);
- if (fileexists("hostname.txt")) {
- hostname = read("hostname.txt");
- len = length(hostname);
- hostname = substring(hostname,1,len-2);
- cd(rootdir);
- } else {
- cd(rootdir);
- break;
- }
- } else {
- break;
- }
|