Use of ShellExec_RunDLL under Windows Server 2008 to launch Excel

PCJockey used Ask the Experts™
I have an in-house application that launches an Excel file by executing the following command:

rundll32 SHELL32.DLL,ShellExec_RunDLL somefile.xls

This command runs perfectly in Windows XP or Windows Server 2003 but when I test it under Windows Server 2008 it doesn't do anything.  Is there a registry change or some other type of permission change that will allow the above command to launch my Excel file under Windows Server 2008?

By the way, I tested the above command under a clean vanilla installations of XP, Windows Server 2003, and Windows Server 2008 using default settings and I installed the Excel 2003 under each instance.  I prefer not to modify the above command line as this would require a code change.  Any suggestions would be helpful.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Author of the Year 2009

It seems like a complicated way to do it.   Why not just "launch the document" -- set the command to run as simply (for instance):
Author of the Year 2009
Another note:  I can verify that the exact command you used works fine in Win7 Home Premium, 64-bit (similar in many ways to Win Server 2008).  
I used the exact text, but provided a full drive-path-and-filename.  For instance:

    rundll32 SHELL32.DLL,ShellExec_RunDLL c:\temp\test.xls  
It's important to include the drive and directory.  Also, if any part of that contains an embedded space, then you should wrap the pathname in double quotes:
    rundll32 SHELL32.DLL,ShellExec_RunDLL "c:\Some deep dir\deep dir\my test.xls"

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial