you can run the below script for getting the logical names for database data and log files RESTORE FILELISTONLY FROM DISK =...
Separate names with a comma.