0

I am trying to load the CRM Plugin tool using powershell.

I am using the call start-process "D:\PluginTool2011\PluginRegistration.exe" that loads the tool ok but does not read the associated .config file that stores the saved connections and then loads them in the tool

Is there any way using powershell that I can call an exe and make it read the config file?

EDIT: the config file that contains the connection settings is called connections.config not PluginRegistration.exe.config as I thought.

3
  • 1
    Now this is guesswork, but did you try to to add -WorkingDirectory D:\PluginTool2011 to the start-process call? Assuming that the tool looks for Connections.cfg in the current working folder. Commented Aug 12, 2015 at 5:46
  • Bingo! Thanks. Add your comment as an answer and I'll mark it as the answer. Commented Aug 12, 2015 at 5:50
  • I have posted this as an answer. Commented Aug 12, 2015 at 5:53

1 Answer 1

1

Add the -WorkingDirectory D:\PluginTool2011 to the Start-Process assuming that the tool reads the config file from the current working directory.

start-process "D:\PluginTool2011\PluginRegistration.exe" -WorkingDirectory D:\PluginTool2011
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.