Quantcast
Channel: Cadence Technology Forums
Viewing all articles
Browse latest Browse all 62835

Forum Post: RE: How to move specific file from one directory to another one

$
0
0
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

Viewing all articles
Browse latest Browse all 62835

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>