How do I play .cohdemo files from explorer?


Intussusceptor

 

Posted

I'm familiar with demo recording.
In the good ol' days of Windows XP, it was quite simple to set up a proper file association to play .cohdemo files by just right-clicking on them. Just open the "open with" dialog, create an action with adding the -playdemo switch to the CoH executable, and perhaps a -screen switch to make it run in a resolution of my choice.

But I can't make it in Windows 7, since they did Paris Hilton the "open with" dialog, and no longer allow me to specify command switches. In addition, it seem like the CoH executable nowadays take the filename without the .cohdemo suffix as input, instead of the full filename with full path. While I can start a CMD.exe in the CoH directory, and just type "cityofheroes.exe -demoplay name_of_demo", I strongly prefer to just right-click the file in explorer and choose "Play at 1280x1024" or whatever I named the action.

So the question is: Can I play .cohdemo files from explorer in Windows 7, as I could in good ol' Windows XP?




Story arcs: �Viva la Represi�n! (#2327) | Mysterious Virus (#11762) | Four Horsemen of the 2012 Apocalypse (#531874) | Deadly Dragon | White Slime
My story on union.virtueverse.com

 

Posted

Well, I made it by creating a .bat file with this content:

Code:
cd "C:\Program Files (x86)\Spel\City of Heroes"
cityofheroes.exe -screen 1280 1024 -demoplay %1
I guess I can live with the MSDOS prompt popping up and broken file icons in explorer.

Hope this help someone.




Story arcs: �Viva la Represi�n! (#2327) | Mysterious Virus (#11762) | Four Horsemen of the 2012 Apocalypse (#531874) | Deadly Dragon | White Slime
My story on union.virtueverse.com