Windows 7 Registering an Automation Server - File Name is truncated

sdruley

New Member
Joined
Dec 14, 2011
Messages
40
When you build an Automation server, it is registered automatically on the computer upon which it is built. On any other computer the registration process will have to be done manually by entering the following into the administrative command prompt:

Code:
REGSVR32 C:\Program Files (x86)\NinjaTrader 7\bin\Microtrends.Customer.StephenDruley.NtDirect.dll

The attachment shows the error I am getting. Should I have quotes around the command line?

As usual, I am very grateful for the expertise that resides in this forum.

Stephen Druley
 

Attachments

  • RegisterAutomationServer.webp
    RegisterAutomationServer.webp
    13.7 KB · Views: 683
Solution
When registering a DLL using REGSVR32 in the command prompt on Windows, if the path contains spaces, it's generally recommended to wrap the path in double quotes to ensure that the full path is correctly recognized. This is especially important to prevent issues related to spaces in directory names. So, in your case, where the path contains spaces in "Program Files (x86)", it would be a good idea to include double quotes around the path like this:
Bash:
REGSVR32 "C:\Program Files (x86)\NinjaTrader 7\bin\Microtrends.Customer.StephenDruley.NtDirect.dll"
This should ensure that the command interprets the entire path correctly without any issues caused by spaces. If you encounter any further issues or errors during the registration...
When registering a DLL using REGSVR32 in the command prompt on Windows, if the path contains spaces, it's generally recommended to wrap the path in double quotes to ensure that the full path is correctly recognized. This is especially important to prevent issues related to spaces in directory names. So, in your case, where the path contains spaces in "Program Files (x86)", it would be a good idea to include double quotes around the path like this:
Bash:
REGSVR32 "C:\Program Files (x86)\NinjaTrader 7\bin\Microtrends.Customer.StephenDruley.NtDirect.dll"
This should ensure that the command interprets the entire path correctly without any issues caused by spaces. If you encounter any further issues or errors during the registration process after including the quotes, feel free to provide more information so we can assist you further.
 

Solution
Back
Top