Tuesday, May 27, 2014

Inserting text and replacing text using Wise Scripts

Inserting Text in any file format:

item: Get Environment Variable
  Variable=SYSDRIVE
  Environment=SYSDRIVE
end
item: Insert Line into Text File
  Pathname=%SYSDRIVE%\oracle\names.ora
  New Text=TEST
  Line Number=0
  Flags=00010000
end

Replacing Text in any format:

item: Get Environment Variable
  Variable=SYSDRIVE
  Environment=SYSDRIVE
end
item: Insert Line into Text File
  Pathname=%SYSDRIVE%\oracle\names.ora
  New Text=Replacing TEST
  Search Text=TEST
  Line Number=0
  Flags=00101000
end


Note: Copy the highlighted content to notepad and change to .wse format and use it

No comments:

Post a Comment