I'm tasked with automating an internal process.
This process involves first being logged on a remote server (A).
From server A, a user would connect to Remote Server (B).
Once authenticated onto Server B, the users need to perform three main tasks:
- Change a file name in a local directory.
- Open command prompt and perform "iisreset"
- Open Internet explorer to ensure the connection with IIS is re-established.
I've used some sample code form a post on CodeProject to make all the remote desktop connections and it's working without issue.
The codes uses the ActiveX MSTSC Library.
My question lies in the steps outlined above.
Once connected to Server B, how do I pragmatically perform these operations.
Right now, We do have an internal script which performs these steps.
To execute the script, the user must log onto Server B and manually run the Script.
If it's possible to make the connections and to execute the script pragmatically this would be a solution. If for some reason this is not possible, I would need to perform the three steps pragmatically as a solution instead.
Thanks you for your help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…