Create a folder in a specific path and move the job's file
Posted: Tue Nov 06, 2012 2:49 pm
Hi,
I want to get NameProper for the job and with this name, I want to make a folder in a specific path and the move the job files. I don´t know how to create a folder. I tried but i haven´t gone on.
The script i use is:
var folderPath = s.getPropertyValue("Ruta" );//take a path where create and leave folder and files.
var carpeta =job.getNameProper();
var rutafin= folderPath+carpeta;
var folder = new Dir(rutafin);// I think that here I have the problem
var nombre = job.getName();
var rutaini=job.getPath()
s.copy(rutaini,rutafin );
job.sendToSingle(job.getPath());
Thanks for you help
Best regards
Miguel
I want to get NameProper for the job and with this name, I want to make a folder in a specific path and the move the job files. I don´t know how to create a folder. I tried but i haven´t gone on.
The script i use is:
var folderPath = s.getPropertyValue("Ruta" );//take a path where create and leave folder and files.
var carpeta =job.getNameProper();
var rutafin= folderPath+carpeta;
var folder = new Dir(rutafin);// I think that here I have the problem
var nombre = job.getName();
var rutaini=job.getPath()
s.copy(rutaini,rutafin );
job.sendToSingle(job.getPath());
Thanks for you help
Best regards
Miguel