Open Excel file after successful RDP connection

0

1

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?

George Ortiz

Posted 2013-08-22T23:06:10.583

Reputation:

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 http://stackoverflow.com/questions/1226772/can-rdp-clients-launch-remote-applications-and-not-desktops

– None – 2013-08-22T23:40:24.703

@purtip31, even better is to use the remoteapp functionality, though it requires setup on the server. – Zoredache – 2013-08-22T23:42:28.823

Answers

1

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

remoteapplicationprogram:s:||Excel_Open_Example_Doc

Zoredache

Posted 2013-08-22T23:06:10.583

Reputation: 18 453

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. – None – 2013-08-23T19:46:41.660