hpc_file_check.lsf 642 B

1234567891011121314151617
  1. if(fileextension(file_to_check) == "fsp") {
  2. lockfile = file_to_check+".lock";
  3. if (!fileexists(lockfile)){
  4. ?"==fsp== "+file_to_check;
  5. load(file_to_check);
  6. status = layoutmode;
  7. if (status == 1) {
  8. write(fname,"IF EXIST \""+lockfile+"\" exit /b 1");
  9. write(fname,"copy /y NUL "+lockfile+" >NUL");
  10. write(fname,"\"C:\Program Files\Lumerical\FDTD\bin\fdtd-engine\" -t 32 "+files{i});
  11. write(fname,"echo del "+curdir+slash+lockfile);
  12. write(fname,"del "+curdir+slash+lockfile);
  13. write(fname,"exit /b 1");
  14. break;
  15. }
  16. }
  17. }