here is corrected posts from above that got accidently deleted
will prevent renaming of files that already have the _edit.psl suffix
if you dont file name will keep changing for example from abc.psl to abc_edit.psl to abc_edit_edit.psl ect. ect..
i would not name the original file names _edit.psl
will prevent renaming of files that already have the _edit.psl suffix
if you dont file name will keep changing for example from abc.psl to abc_edit.psl to abc_edit_edit.psl ect. ect..
Dir d
foreach(d "$Desktop$\*.psl" FE_Dir 4)
,str path=d.FullPath
,str filename=d.FileName
,str s
,_s.getfile(path)
,_s.findreplace("select partition 0" "select partition 1")
,if(find(filename "_edit.psl")<0)
,,filename.findreplace(".psl" "_edit.psl")
,_s.setfile(filename)
i would not name the original file names _edit.psl