The script is a good way to move physical files from one location to the other.
The Script will run the sc_helpfile or use the sys.database files view to get the physical and logical name of the database.
Change the database to single_user and set the database offline.
Move the files to the new location manually ...
Alter database and set new File locations, Set database back online and set database back to multi_user.