---
title: "查找dll文件"
author: "lh8489"
date: "2010-05-31T23:28:16Z"
tags: ["Microsoft"]
categories: ["操作系统"]
slug: "dll"
draft: false
lastmod: "2010-05-31T23:29:17Z"
id: 680469
url: "https://lh8489.iteye.com/blog/680469"
---

当机器上安装一些程序后，Assembly中的DLL会变得越来越丰富。

        拿个常见问题来说明。

        安装ReportViewer后其中会出现以下DLL。

        Microsoft.ReportViewer.ProcessingObjectModel.dll

        Microsoft.ReportViewer.WinForms.dll

        Microsoft.ReportViewer.Common.dll

        下面两个，在VS安装目录可以搜到，而Microsoft.ReportViewer.ProcessingObjectModel.dll无论如何也是搜不着，全硬盘搜索也搜不到。

        那么，就开始执行以下命令：

        Subst b: %windir%\\assembly

        执行完后，会发现硬盘分区多了个B盘，打开后看到了所有assembly下的DLL，于是在这里就搜到了Microsoft.ReportViewer.ProcessingObjectModel.dll，将其复制出来。

        然后，这个虚拟的B分区不再需要，于是执行以下命令将其删除：

        Subst b: /d

        只要是在这台机器上安装了的DLL或在assembly中可以看到的都是可以用上面的办法拿出来的。