Robin, There's no built-in function to find the directory part of a file name (unfortunately) so you'd probably do something like: fileTailPattern=pcreCompile("/[^/]*$") fileName=myForm->set_file_Entry->value ; your code above seems to call the field either file_Entry or set_file_Entry, so I'm not sure which is correct dirName=pcreReplace(fileTailPattern fileName "" 1) sprintf(command "si -batch -command netlist; mv netlist.cdl %s" dirName) system(command) Regards, Andrew
↧