Liberty BASIC Help Online

NAME a$ AS b$
NAME StringExpr1 AS StringExpr2
This command renames the file specified in the string expression StringExpr1 to StringExpr2StringExpr1 can represent any valid filename that is not a read-only file, and StringExpr2 can be any valid filename as long as it doesn't specify a file that already exists.
  'rename the old file as a backup
  name rootFileName$ + ".fre" as rootFileName$ + ".bak"
  'open a new file and write data
  open rootFileName$ + ".fre" for output as #disk

Copyright (C) 2003 Shoptalk Systems
Liberty BASIC -