Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 5 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

 
discard

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.