No, that's the physical name of the file. You need the logical name for shrink. It's the name column in sys.database_files.
p.s. Why are you shrinking the log?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability