Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a PHP script that creates RDP files on the fly and it works great.

The next step is to automatically open an Excel file once the RDP session is created, or simply "link" to the Excel file within the RDP connection.

An example would be a user clicks on a link that generates a RDP file which they then open and connect to, which immediately opens file.xlsx in Excel.

How would I go about this?

share|improve this question

migrated from Aug 25 '13 at 22:39

This question came from our site for system and network administrators.

Should the users also have the ability to navigate around in the rdp session, or would they be limited to excel? If the latter, check out‌​ations-and-not-desktops – purtip31 Aug 22 '13 at 23:40
@purtip31, even better is to use the remoteapp functionality, though it requires setup on the server. – Zoredache Aug 22 '13 at 23:42
up vote 1 down vote accepted

Is this for a RemoteApp setup? Do you have RemoteApps defined on the Terminal server? Or did you want the old style were you just specify the command to run, but you don't have the RemoteApp features?

If you want the old style, just the AlternateShell value (docs) to be the path to excel followed by the path to the document you wanted opened.

Really, you probably should be looking at setting up the RemoteApp functionality though, since it permits the window to be resized and so on.

RemoteApps must be defined on the server, and in your configuration, you specify the defined name. So you might have a setting that looked like this

share|improve this answer
RemoteApp is definitely the way to go. I set it up and am able to get the RDP files to open the connection to the file. I'll have to play around with the automation aspect of creating the RemoteApps on a per file instance. – George Ortiz Aug 23 '13 at 19:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.