Windows Vista下释放磁盘空间的指南

I've got a smallish C: drive, about 140G, but noticed that in the last week or so I'd had only 200megs free. Not cool. A few hours later, I have 84.4G free. Here's now:

我的C:驱动器很小,大约140G,但是注意到在过去的一周左右,我只有200兆兆字节的空闲空间。 不酷几个小时后,我有84.4G可用空间。 现在是这里:

  • vsp1cln.exe - After you install Vista SP1, it leaves around the original files so you can uninstall the Service Pack if you want. After a few months with the Service Pack, I've decided for myself that it's a good thing and decided I don't need the option.

    vsp1cln.exe-安装Vista SP1后,它会保留原始文件,因此您可以根据需要卸载Service Pack。 使用Service Pack几个月后,我为自己确定这是一件好事,并决定不需要该选项。

    Open up an administrative command prompt. That means, click the Start Menu, type cmd.exe, then right-click on it and click "Run as Administrator." Alternatively, you can press Ctrl-Shift-Enter to run something as Administrator.

    打开一个管理命令提示符。 这意味着,单击开始菜单,键入cmd.exe,然后右键单击它,然后单击“以管理员身份运行”。 或者,您可以按Ctrl-Shift-Enter来以管理员身份运行某些内容。

    Next, type "vsp1cln" at the command prompt. If you select yes, you'll get back around 2 to 3 gigs. The only thing, again is that you can't uninstall SP1.

    接下来,在命令提示符下键入“ vsp1cln”。 如果选择是,您将获得大约2至3个演出。 同样,唯一的事情是您无法卸载SP1。

    VSP1CLN
  • Disk Cleanup - It's amazing to me the number of people who DON'T run Disk Cleanup. It's even better in Vista. Just run it. Often.

    磁盘清理-令我惊讶的是,没有运行磁盘清理的人数。 在Vista中甚至更好。 只是运行它。 经常。

  • Disable Hibernate - I have a desktop, and I prefer just three power states, sleeping, on or off. I don't use Hibernate. Plus, I have 8 gigs of RAM, and hibernation uses as much disk space as you have RAM. From an administrative command prompt, type "powercfg -h off" to get that space back. Got me back 8gigs.

    禁用Hibernate-我有一个台式机,我只喜欢三种电源状态,即睡眠,打开或关闭。 我不使用Hibernate。 另外,我有8个RAM,Hibernate状态使用的磁盘空间与RAM一样多。 在管理命令提示符下,键入“ powercfg -h off”以获取该空间。 让我回来了8gigs。

  • %TEMP% Files - Even though Disk Cleanup is great, sometimes for whatever reason it doesn't get stuff out of the TEMP folder. I recommend you try to delete the TEMP folder. I do this from the command line. Open up an administrative console, type "cd /d %TEMP%" (without the quotes, of course). Then, go up one folder with "cd .." and type "rd /s temp"

    %TEMP%文件-尽管“磁盘清理”很棒,但有时由于某种原因它不会从TEMP文件夹中取出内容。 我建议您尝试删除TEMP文件夹。 我从命令行执行此操作。 打开管理控制台,键入“ cd / d%TEMP%”(当然不带引号)。 然后,使用“ cd ..”进入一个文件夹,然后键入“ rd / s temp”

    Do be warned, this command says to TRY to delete the whole folder and everything underneath it.

    请注意,此命令对TRY表示要删除整个文件夹及其下的所有内容。

    It's very unambiguous. If you don't feel comfortable, don't do it. If you feel in over your head, don't do it. If it screws up your computer, don't email me. Next, I do a "dir temp" to see if the folder really got deleted. It usually doesn't because almost always some other program has a temp file open and the command can't get remove everything. If it DOES remove the folder, just "md temp" to get it back fresh and empty. This got me back 2.5 gigs. I'm sure you'll be surprised and get lots back.

    这是非常明确的。 如果您不舒服,请不要这样做。 如果您感到头顶不适,请不要这样做。 如果它弄坏了您的计算机,请不要给我发送电子邮件。 接下来,我执行“ dir temp”以查看文件夹是否确实被删除。 通常不是,因为几乎其他一些程序总是打开了一个临时文件,并且该命令无法删除所有内容。 如果确实删除了该文件夹,则只需“ md temp”即可将其恢复为空。 这让我回来了2.5场演出。 我敢肯定,您会感到惊讶并得到很多回报。

  • System Properties
    Clean up System Restore - Vista keeps backups of lots of system files every time something major (driver installation, some software installations, etc) happens, and after a while this can take up lots of space. It uses a service/subsystem called ShadowCopies and can be administered with a tool called vssadmin.

    清理系统还原-每次发生重大事件(驱动程序安装,某些软件安装等)时,Vista都会保留许多系统文件的备份,一段时间后这会占用大量空间。 它使用称为ShadowCopies的服务/子系统,并且可以使用名为vssadmin的工具进行管理。

    Now, the EASIEST way to handle this is just to run Disk Cleanup, then click More Options and "Clean up…" which will delete all but the most recent System Restore data. That's what I did. That got me back lots of space back on my C: drive.

    现在,最简单的方法就是运行“磁盘清理”,然后单击“更多选项”和“清理...”,这将删除除最近的系统还原数据以外的所有数据。 那就是我所做的。 这使我在C:驱动器上获得了很多空间。

    Alternatively, you can use the vssadmin tool from an admin command prompt to to do important things. One, you can set a max size for the System Restore to get. Two, you can set an alternative drive. For example, you could have the D: drive be responsible for System Restore for the C: drive.

    另外,您可以从admin命令提示符下使用vssadmin工具执行重要操作。 一,您可以设置系统还原的最大大小。 二,您可以设置备用驱动器。 例如,您可以让D:驱动器负责C:驱动器的系统还原。

    You can use the commands like this. Note that you can put whatever drive letters you have in there. I ran it for each of my three drives. Note that this isn't just used for System Restore, it's also used for the "Previous Versions" feature of Vista that keeps some number of Shadow Backups in case you delete something and didn't mean it. Kind of a mini, local time machine. Point is, this isn't a feature you probably want off, just one you want kept to a max.

    您可以使用这样的命令。 请注意,您可以在其中放入任何驱动器号。 我为三个驱动器中的每一个运行了它。 请注意,这不仅用于系统还原,还用于Vista的“以前的版本”功能,该功能可以保留一定数量的Shadow Backup,以防您删除某些内容而并非故意。 一种迷你的本地时间机器。 重点是,这不是您可能想要禁用的功能,只是您想要保持最大功能。

    vssadmin Resize ShadowStorage /On=C: /For=C: /MaxSize=15GB

    vssadmin调整ShadowStorage的大小/ On = C:/ For = C:/ MaxSize = 15GB

  • Check Folder Sizes with WinDirStat - I've used a large number of Windows Folder Size checkers, and the one I keep coming back to is WinDirStat. It used to be OverDisk, but OverDisk isn't smart about NTFS Junction Points and tends to get confused in Vista generally. Plus, it's been on version 0.11 for something like 4 years. WinDirStat is actively developed, it's Open Source, and it works great in Vista. It's wonderfully multi-threaded and is generally fabulous. It'll help you find those crazy large log files you've forgotten about deep in %APPDATA%. It saved me 5gigs of random goo.

    使用WinDirStat检查文件夹大小-我使用了大量Windows文件夹大小检查器,而我继续使用的是WinDirStat 。 它曾经是OverDisk ,但是OverDisk对NTFS交接点并不聪明,并且通常在Vista中会感到困惑。 另外,它在0.11版本上已经存在了4年之久。 WinDirStat是积极开发的,它是开源的,并且在Vista中运行良好。 它具有出色的多线程功能,并且通常很棒。 它会帮助您在%APPDATA%中找到您已忘记的那些疯狂的大型日志文件。 它为我节省了5gig的随机粘性。

  • CVSRepo Properties
    NTFS Compression - That's right, baby, Stacker (kidding). This is a great feature of NTFS that more people should use. If you've got a bunch of folders with old crap in them, but you don't want to delete them, compress. If you've got a folder that fills up with text files or other easily compressed and frequently access stuff, compress 'em. I typically compress any and all folders that are infrequently accessed, but I'm not ready to toss. That is about 30-40% of my hard drive. Why bother to compress when Disk Space is so cheap? Well, C: drive space usually isn't. I've got a 10,000 RPM drive, and it's small. I'd like to get as much out of it as I can without the hassle of moving my Program Files to D:. More importantly, Why the heck not? Why shouldn't I compress? It's utterly painless. Just right click a folder, hit Properties, then Advanced, then Compress. Then forget about it. As long as you're not compressing a bunch of ZIP files (won't do much) then you're all set. You might consider defragging when you're done, just to tidy up.

    NTFS压缩-是的,宝贝,堆纸器(起绒)。 这是NTFS的一个重要功能,应该让更多人使用。 如果您有一堆带有旧废话的文件夹,但是您不想删除它们,请压缩。 如果您有一个充满文本文件或其他易于压缩且经常访问的文件的文件夹,请压缩它们。 我通常压缩不经常访问的所有文件夹,但是我还没准备好。 那大约是我硬盘的30-40%。 当磁盘空间如此便宜时,为什么还要费心压缩呢? 好吧,C:驱动器空间通常不是。 我有一个10,000 RPM的驱动器,它很小。 我想尽可能多地利用它,而无需将程序文件移至D:。 更重要的是,为什么不呢? 我为什么不压缩? 完全没有痛苦。 只需右键单击一个文件夹,依次单击“属性”,“高级”和“压缩”。 那算了只要您不压缩一堆ZIP文件(不会做太多事情),便一切就绪。 您可能会在完成后考虑进行碎片整理,只是为了整理一下。

  • Remove Old Stuff - Just go into Add/Remove Programs or Programs and Features and tidy up. There's likely a pile of old crap in there that's taking up space. I removed some Games and Game Demos and got back 5 gigs.

    删除旧资料-只需进入“添加/删除程序”或“程序和功能”并整理即可。 那里可能有一堆旧东西在浪费空间。 我删除了一些游戏和游戏演示,并获得了5场演出。

  • Wasteful TempFiles/ScratchFiles Settings in Popular Programs - Most programs that need scratch space have a way to set a ceiling on that Max Space. Go into Internet Explorer or Firefox, into the options and delete the Temporary Internet Files. Set a reasonable size like 250 megs or 500 megs. I've seen those cache sizes set to gigs. If you've got a speedy connection to the internet, that's just overkill.

    流行程序中的浪费性TempFiles / ScratchFiles设置-大多数需要暂存空间的程序都可以在最大空间上设置上限。 进入Internet Explorer或Firefox,进入选项并删除Internet临时文件。 设置合理的大小,例如250兆或500兆。 我已经看到那些缓存大小设置为演出。 如果您可以快速连接到互联网,那简直太过分了。

  • Find Fat Temp File Apps and squash them - Google Earth and Microsoft Virtual Earth 3D are really fast and loose with the disk space. You can poke around for a while and next thing you know you're down 2 gigs or more. If you don't use the app a lot, delete the caches when you exit, or better yet, make the cache size for each app small.

    查找Fat Temp File Apps并将其压缩-Google Earth和Microsoft Virtual Earth 3D的磁盘空间确实非常快速且松散。 您可以闲逛一会儿,接下来您会发现自己跌倒了2场或更多。 如果您不经常使用该应用程序,请在退出时删除缓存,或者更好的方法是减小每个应用程序的缓存大小。

  • works-on-my-machine-starburst
    ADVANCED: Use Junction Points/Hard Links/Reparse Points to move temp file folders - This is an advanced technique. If this technique kills your beloved pet cat, don't email me. You have been warning. Also, note that I'm only saying it works for me.

    先进:使用连接点/硬链接/重新解析点移动临时文件夹-这是一项高级技术。 如果此技术杀死了您心爱的宠物猫,请不要给我发送电子邮件。 您一直在警告。 另外,请注意,我只是说它对我有用。

    I use my

    我用我的

    Zune all the time, and like many portable media players, it transcodes (squishes) video that it downloads from the web to its preferred size and codec. For example, if I download an ABCNews Podcast, it might be 600 megs, but then Zune automatically squishes it to say, 300 megs. It puts that in %AppData%\Local\Microsoft\Zune\Transcoded Files Cache. I'm not sure how to move that folder, and I've looked all over the Zune app. I know I can set the Max Size, but I want it off my drive. So, I make a SymLink. This is a way to fake out apps (Unix people know this) by making a folder POINT to another place.

    Zune始终像许多便携式媒体播放器一样,对从网络下载的视频进行转码(压缩)到其首选大小和编解码器。 例如,如果我下载ABCNews播客,则可能是600兆,但是Zune会自动将其压缩为300兆。 它将它放在%AppData%\ Local \ Microsoft \ Zune \ Transcoded文件缓存中。 我不确定如何移动该文件夹,并且在Zune应用程序中到处都是。 我知道我可以设置“最大大小”,但是我希望将其从驱动器上取下来。 因此,我制作了一个SymLink。 这是通过将文件夹POINT放置到另一个位置来伪造应用程序的一种方法(Unix人士知道这一点)。

    From an admin command prompt, I went into the Zune temp folder and deleted that Transoded Files Cache directory. Then I typed:

    在管理员命令提示符下,我进入了Zune temp文件夹,并删除了“已转换文件缓存”目录。 然后我输入:

    mklink /d "Transcoded Files Cache" "d:\Zune Transcoded Files Cache" So that directory really points to one on my D: drive. I can confirm it with dir:

    mklink / d“转码文件缓存”“ d:\ Zune转码文件缓存” 因此该目录实际上指向我的D:驱动器上的目录。 我可以用dir确认:

  • Directory of C:\Users\Scott\AppData\Local\Microsoft\Zune

    C:\ Users \ Scott \ AppData \ Local \ Microsoft \ Zune的目录

    10/19/2008  02:24 PM    <DIR>          . 10/19/2008  02:24 PM    <DIR>          .. 10/19/2008  02:25 PM    <DIR>          Art Cache 07/15/2008  08:56 AM    <DIR>          DeviceInbox 10/19/2008  02:24 PM    <SYMLINKD>     Transcoded Files Cache [d:\Zune Transcoded Files Cache] Again, this is really dangerous, especially if you forget you did it. Also, not every application understands these and older disk management or directory management apps can get confused. You have been warned. I like it for me. This got me back 8 gigs of space.

    2008年10月19日02:24 <DIR>。 10/19/2008 02:24 PM <DIR> .. 10/19/2008 02:25 PM <DIR> Art Cache 07/15/2008 08:56 AM <DIR> DeviceInbox 10/19/2008 02:24 PM <SYMLINKD>转码文件缓存[d:\ Zune转码文件缓存]同样,这确实很危险,尤其是如果您忘记了这样做的话。 此外,并非每个应用程序都理解这些功能,较旧的磁盘管理或目录管理应用程序可能会感到困惑。 你被警告了。 我喜欢我。 这使我获得了8个演出的空间。

What did I miss, Dear Reader? I'm sure I missed something.

亲爱的读者,我想念什么? 我确定我错过了一些东西。

翻译自: https://www.hanselman.com/blog/guide-to-freeing-up-disk-space-under-windows-vista

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值