Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use QM function to load and modify files of type .psl
#3
Double quotes will cause errors

Macro Macro2
Code:
Copy      Help
str s.getfile("$desktop$\abc.psl");; load the file into a string so you can work with it
s.findreplace("select partition 0" "select partition 1")
;the first set of quotes in findreplace are what to find the second are what to replace with
s.findreplace("pwde = "c"" "pwde = "d"");;;uncomment and make changes to findreplace
s.findreplace("/path = "C:/"" "/path = "e:/"");;;uncomment and make changes to findreplace
s.findreplace("/name = "c"" "/name = "f"");;;uncomment and make changes to findreplace
out s
;when done editing
s.setfile("$desktop$\abc.psl");; uncomment when you want to save


Attached Files Image(s)
   


Messages In This Thread
RE: use QM function to load and modify files of type .psl - by win - 08-25-2018, 03:01 AM

Forum Jump:


Users browsing this thread: 11 Guest(s)