Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use QM function to load and modify files of type .psl
#16
need to enumerate the desktop then using dir
keeps original files untouched makes new file with appended name for  example   changes abc.psl to abc_edit.psl


Code:
Copy      Help
Dir d
foreach(d "$Desktop$\*.psl" FE_Dir 4)
,str path=d.FullPath
,str filename=d.FileName
,out filename
,out path
,_s.getfile(path)
,_s.findreplace("select partition 0" "select partition 1")
,filename.findreplace(".psl" "_edit.psl")
,_s.setfile(filename)


Messages In This Thread
RE: use QM function to load and modify files of type .psl - by Kevin - 08-25-2018, 11:30 PM

Forum Jump:


Users browsing this thread: 7 Guest(s)