Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use QM function to load and modify files of type .psl
#20
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..
Code:
Copy      Help
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


Messages In This Thread
RE: use QM function to load and modify files of type .psl - by Kevin - 08-26-2018, 12:15 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)