Extract mdf & ldf files from backup file? Is there a way to extract SQL Server files (.mdf &amp; .ldf) from a backup file (.bak) to a physical location, without restore database?

I need a restore query or script to restore files from bak file only, no attaching to server.
Please don't speak about detaching query after restore.
ApexSQL has recently released a tool that can do this. It's ApexSQL Restore. I haven't tested it fully yet, but you have to connect to a SQL Server instance to do this. It attaches database backup file and creates MDF and LDF files for the database.