Saturday, February 26, 2011

Cmd Error: unc paths are not supported : Resolution.

Scenario:
I have a console application that runs on a network share. It does not function on the share but functions fine on my local vista machine. It is a dot net application that provides the details of the exception on the command line. Now I cannot run it on the lan from cmd (command prompt) because cmd exits with the error "unc paths are not supported".

Fortunately, cmd can be made to run on lan shares.
http://support.microsoft.com/kb/156276

Pretty simple really. Just create a REG_DWORD named DisableUNCCheck  with value 0x01 under:
HKEY_CURRENT_USER\Software\Microsoft\Command Processor

no need to restart explorer or anything. Just start cmd using a bat file in the desired network share and run the console application to view the output.