Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

My old cmd-script:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm blabla.dll
C:\Windows\Microsoft.NET\Framework\v2.0.50727\GacUtil -i blabla.dll

(Which works fine in my old machine.)

But now I have a script for a 64-bit machine (Windows Server 2008 R2):

C:\Windows\Microsoft.NET\Framework64\v2.0.50727\RegAsm blabla.dll
C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools\GacUtil -i blabla.dll

Then I get this message:

C:\Windows\Microsoft.NET\Framework64\v2.0.50727\RegAsm blabla.dll

Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.5420 Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.

Types registered successfully

C:\Program Files\Microsoft SDKs\Windows\v7 .1\Bin\NETFX 4.0 Tools\GacUtil -i blabla.dll 

'C:\Program' is not recognized as an internal or external command, operable program or batch file.

The second command is not successful.

share|improve this question
up vote 6 down vote accepted

You need to quote around the path to gacutil because it has spaces in it. Try:

C:\Windows\Microsoft.NET\Framework64\v2.0.50727\RegAsm blabla.dll "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools\GacUtil" -i blabla.dll
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.