# C:\\WINDOWS\\Temp : can I dump it?

**URL:** <https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048>\
**Category:** Factual Questions\
**Created:** [December 13, 2008, 8:55pm UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048 "2008-12-13T20:55:22Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![MannyL](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@MannyL](https://boards.straightdope.com/u/MannyL)\
**Post date:** [December 15, 2008, 5:42am UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/21 "2008-12-15T05:42:15Z")

</div>

What about this?

Add a second drive to the PC. Format it and write down the drive letter.

Then setup a Junction Link to the new drive so the PC think’s it’s C:\program Files

Instructions found at [How To Use Hardlinks And Junctions In Windows - Daniel Einspanjer's journal — LiveJournal](http://daniele.livejournal.com/66210.html)

---

<div class="post-metadata">

**Author:** ![minor7flat5](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/minor7flat5/32/258_2.png) [@minor7flat5](https://boards.straightdope.com/u/minor7flat5)\
**Post date:** [December 15, 2008, 6:19pm UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/22 "2008-12-15T18:19:45Z")

</div>

> [@MannyL](#):
>
> What about this?
> 
> Add a second drive to the PC. Format it and write down the drive letter.
> 
> Then setup a Junction Link to the new drive so the PC think’s it’s C:\program Files
> 
> Instructions found at [How To Use Hardlinks And Junctions In Windows: daniele — LiveJournal](http://daniele.livejournal.com/66210.html)

It sounds tantalizing…

That article refers to “hardlinks” in all cases, and though I know nothing about what the author is talking about from a Windows perspective, in Unix land, hard links are direct pointers to a file/directory, with exactly the same status as the original entry. In other words, the directory/file appears in two places in the file hierarchy, and neither place is the “true” location, they both are fully valid links to the target.

Hard links do not go across device boundaries however. The kind that can go across device boundaries is a symbolic link—this type of link is simply a reference to a filesystem path, sort of like shortcuts. If you move the target, the symbolic link no longer works. In Unix, these are handled transparently by the underlying OS, so when you reference a file with a symbolic link in its path, everything just works right.  
I don’t know if Windows supports symbolic links and, if so, does Windows provide the same level of transparent support for them.

Even if you can do symlinks in Windows, across device boundaries, there is the strong risk that lots of the Windows framework and software just wouldn’t handle it well.  
Software that walks directory trees will see both devices as one; software that uses old APIs for file access may or may not function properly. And tools such as Explorer aren’t designed to handle symlinks or hard links very well.

I imagine it would be an interesting, if risky, experiment to see if you could successfully put “Program Files” elsewhere. You might just smoke out some weirdness, like when I found out that some installer programs had hard-coded “C:\Progra~1” in them.

---

<div class="post-metadata">

**Author:** ![Harmonious\_Discord](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@Harmonious\_Discord](https://boards.straightdope.com/u/Harmonious_Discord)\
**Post date:** [December 15, 2008, 7:23pm UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/23 "2008-12-15T19:23:12Z")

</div>

[xxclone](http://www.xxclone.com/)

1. This is the best program for copying the OS partition I’ve ever used. if you have a different spare drive you can copy to the other drive.

2. As for enlarging your current partition it’s not hard, but there is the slightest chance of a problem. Use a partition resizing program to shrink the data partition first. Enlarge the OS partition next. Your done. They are simple to use and if your just resizing it’s very hard to screw anything up.

---

<div class="post-metadata">

**Author:** ![Mr.Slant](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@Mr.Slant](https://boards.straightdope.com/u/Mr.Slant)\
**Post date:** [December 15, 2008, 7:52pm UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/24 "2008-12-15T19:52:10Z")

</div>

Before attempting resizing operations:  
Check Disk  
Defrag

It’ll make things both safer and faster.

---

<div class="post-metadata">

**Author:** ![mhendo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mhendo/32/3159_2.png) [@mhendo](https://boards.straightdope.com/u/mhendo)\
**Post date:** [December 15, 2008, 8:08pm UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/25 "2008-12-15T20:08:43Z")

</div>

I’ve always found [GPartEd](http://gparted.sourceforge.net/) (the Gnome Partition Editor) to be excellent for repartitioning, reformatting partitions, etc.

I used it when i repartitioned my hard drive before installing Ubuntu, and i’ve used it since to reformat partitions to new file systems. It resized my C: drive without a hassle (though, like **Mr Slant** suggests, running Check Disk and then a defrag first is highly recommended).

You can download and burn it as a bootable CD.

---

<div class="post-metadata">

**Author:** ![happ](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@happ](https://boards.straightdope.com/u/happ)\
**Post date:** [December 15, 2008, 8:39pm UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/26 "2008-12-15T20:39:38Z")

</div>

I’ve repartitioned with Easeus and had no problems. I would recommend running a scandisk prior to doing anything. [http://www.partition-tool.com/download/epm.exe](http://www.partition-tool.com/download/epm.exe)

---

<div class="post-metadata">

**Author:** ![Kaio](https://avatars.discourse-cdn.com/v4/letter/k/c68b51/32.png) [@Kaio](https://boards.straightdope.com/u/Kaio)\
**Post date:** [December 18, 2008, 1:13am UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/27 "2008-12-18T01:13:56Z")

</div>

Linky no worky.

I’ve actually already tried to defrag C:, and got an error that I don’t have enough space to properly do so. Sigh. Haven’t been willing to risk doing it anyway without backing up first.

Stiiiillll hoping for an answer to my backup questions…

---

<div class="post-metadata">

**Author:** ![Mr.Slant](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@Mr.Slant](https://boards.straightdope.com/u/Mr.Slant)\
**Post date:** [December 18, 2008, 1:23am UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/28 "2008-12-18T01:23:15Z")

</div>

Please restate your backup questions, if they’re in this thread.  
I didn’t realize you had a pending request.

---

<div class="post-metadata">

**Author:** ![Harmonious\_Discord](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@Harmonious\_Discord](https://boards.straightdope.com/u/Harmonious_Discord)\
**Post date:** [December 18, 2008, 1:25am UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/29 "2008-12-18T01:25:57Z")

</div>

I don’t know what you want either at this point. You can’t defrag a drive that’s full. Don’t worry about defrag.

---

<div class="post-metadata">

**Author:** ![Kaio](https://avatars.discourse-cdn.com/v4/letter/k/c68b51/32.png) [@Kaio](https://boards.straightdope.com/u/Kaio)\
**Post date:** [December 18, 2008, 5:47am UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/30 "2008-12-18T05:47:36Z")

</div>

> [@Mr.Slant](#):
>
> Please restate your backup questions, if they’re in this thread.  
> I didn’t realize you had a pending request.

> [@Kaio](#):
>
> On a related note, re: doing the hard drive backup: Guy2 recommended [Shadow Protect](http://www.storagecraft.com/products/ShadowProtectDesktop/) for the software, and I’d assume that once I have the software installed and the external hard drive plugged in the software will pretty much guide me step-by-step in how to create the image. (At least I hope it will.) My main questions are: it comes with an ISO file, which I am to burn to a CD, which somehow comes into play if I need to restore from backup, but I have no idea how? and How can I verify that the backup is good? I’d hate to screw something up on my computer, go to restore it, and _then_ discover that something went wrong.

> [@Kaio](#):
>
> I just have no idea how to verify that the image is good, and that I can restore from it. Does anyone have any experience with Shadow Protect and can give me feedback on how easy it is to use, and how I go about verifying the image, and restoring if necessary?

In essence I want a full-image backup (registry, software, data, everything) of my entire internal hard drive, copied onto the external hard drive. Is this going to be a plug-and-play and follow-the-prompts kind of deal? It occurs to me that I don’t even know if I have to format or otherwise mess with the external drive before making the image.

How does the ISO/recovery disk/whatever-it-is come into play?  
How do I verify that the backup image on the external hard drive is good, and is 100% something I could restore from?

Any other personal experiences with Shadow Protect. I’m assuming that it’s fairly user-friendly, and won’t be difficult to figure out how to back-up, restore, or schedule incremental back-ups, but I don’t know.

---

<div class="post-metadata">

**Author:** ![DWMarch](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dwmarch/32/1010_2.png) [@DWMarch](https://boards.straightdope.com/u/DWMarch)\
**Post date:** [December 18, 2008, 5:55am UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/31 "2008-12-18T05:55:04Z")

</div>

Your recycle bin sets aside 10% of the drive space by default, so it’s chewing up a gig just sitting there. Unless you delete huge files on a regular basis feel free to set it smaller.

Also, you can safely unhide and delete all the backup folders Windows makes for Windows Updates. These will be hidden in C:\Windows with names like $NTUninstall… You can delete them all and save yourself a bit of space. To find them you’ll have to go into Windows Explorer and under Folder Options/View uncheck “hide protected operating system files” at which point they should show up in Explorer.

Last but not least, hard drives are cheap and easy to install. Why not just buy a +500GB drive and never have this problem again?

---

<div class="post-metadata">

**Author:** ![davekhps](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@davekhps](https://boards.straightdope.com/u/davekhps)\
**Post date:** [December 18, 2008, 3:08pm UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/32 "2008-12-18T15:08:31Z")

</div>

Off-topic, but given the subject of C:\WINDOWS\Temp, I figured this would be a good thread to ask this question here.

I run Vista Home Premium, but I had this issue with XP as well.

Using IE7, when downloading large files off the internet (video and music, but mostly video), there is the percentage downloaded message box. When that download hits 99%, whatever was downloading apparently has to be copied from the Temp file to the location I selected as “Save As.” When downloading large files, or multiple files concurrently, the time required to copy the download from the Temp File to the destination I selected can take 30 seconds to several minutes _for each download_.

I’ve always wondered-- is there a way to skip the “Temp file” middleman here? I don’t want to copy a file I’m downloading-- I just want to download it to my destination so when it hits 100% downloaded, it’s already there. All this extra time is annoying and methinks ultimately pointless.

(FYI-- if the solution is “use a different browser,” I routinely use Firefox and Chrome as well, but I’d like to know if there is a workaround here for IE because for some purposes I still prefer IE at times).

Thanks for any help. . .

---

<div class="post-metadata">

**Author:** ![Musicat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/musicat/32/20189_2.png) [@Musicat](https://boards.straightdope.com/u/Musicat)\
**Post date:** [December 18, 2008, 6:33pm UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/33 "2008-12-18T18:33:14Z")

</div>

> [@davekhps](#):
>
> I’ve always wondered-- is there a way to skip the “Temp file” middleman here? I don’t want to copy a file I’m downloading-- I just want to download it to my destination so when it hits 100% downloaded, it’s already there. All this extra time is annoying and methinks ultimately pointless.

It is annoying and pointless, but another example of the “latest” concepts from Microsoft that are worse than 20 year old software from smarter people.

The idea of making a temporary file name in the destination directory, then renaming it after the download completes is a concept I used, wrote and enjoyed in the 1980’s for many programs. It’s no big deal.

Now, if there’s a way around this or a registry setting I can change, I’d sure like to know about it, but that doesn’t change my attitude towards MS for making the stupid 2-step operation the default.

---

<div class="post-metadata">

**Author:** ![Kobal2](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kobal2/32/20_2.png) [@Kobal2](https://boards.straightdope.com/u/Kobal2)\
**Post date:** [December 18, 2008, 7:06pm UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/34 "2008-12-18T19:06:45Z")

</div>

There is a reason for the 2-step thing : should you or a software/hardware issue interrupt the download midway through, the partial download stays in the TEMP directory, which is flushed regularly. Thus, it reduces the risk of unwittingly cluttering the disk with garbage files the average user is afraid to delete because he doesn’t know wherefrom they came.

EDIT : That… was a completely pointless remark, wasn’t it ? _palmface_

---

<div class="post-metadata">

**Author:** ![Mr.Slant](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@Mr.Slant](https://boards.straightdope.com/u/Mr.Slant)\
**Post date:** [December 18, 2008, 8:43pm UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/35 "2008-12-18T20:43:26Z")

</div>

> [@Kaio](#):
>
> In essence I want a full-image backup (registry, software, data, everything) of my entire internal hard drive, copied onto the external hard drive. Is this going to be a plug-and-play and follow-the-prompts kind of deal? It occurs to me that I don’t even know if I have to format or otherwise mess with the external drive before making the image.
> 
> How does the ISO/recovery disk/whatever-it-is come into play?  
> How do I verify that the backup image on the external hard drive is good, and is 100% something I could restore from?
> 
> Any other personal experiences with Shadow Protect. I’m assuming that it’s fairly user-friendly, and won’t be difficult to figure out how to back-up, restore, or schedule incremental back-ups, but I don’t know.

No time for a lengthy post now, but start researching here if you like:

> **[Free Hard Disk Backup and Restore, Hard Disk Image and Cloning Utilities...](https://www.thefreecountry.com/utilities/backupandimage.shtml)**
>
> Free/open source backup and image software that allow you to back up your hard disk

---

<div class="post-metadata">

**Author:** ![Musicat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/musicat/32/20189_2.png) [@Musicat](https://boards.straightdope.com/u/Musicat)\
**Post date:** [December 18, 2008, 11:17pm UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/36 "2008-12-18T23:17:35Z")

</div>

> [@Kobal2](#):
>
> There is a reason for the 2-step thing : should you or a software/hardware issue interrupt the download midway through, the partial download stays in the TEMP directory, which is flushed regularly. Thus, it reduces the risk of unwittingly cluttering the disk with garbage files the average user is afraid to delete because he doesn’t know wherefrom they came.

Do you know how common it is for programs to create junk & work files that they _never_ delete even if _not_ interrupted? Very. They get scattered all over the drive. This kind of clean computing doesn’t seem to be important to most programs.

The easiest solution (for file downloading) is to name the temp file something distinctive, like an extension of “$$$”. Then a periodic sweep of all files of this type will turn up any orphans and all can be deleted.

In fact, you don’t even have to rename it at all. Just download to the final file name and be sure to lock the file until the download is complete. The only drawback to this scheme is that a directory listing in the middle of a download will show that file as existing, but with the wrong size and not openable. BFD.

There are other more sophisticated ways, like keeping a database of temporary file names which is periodically consulted and used to purge junk. I’ve programmed this into complex systems and if carefully crafted, works like a charm.

And I don’t know of any basic system routine that “flushes the TEMP directory regularly,” although I’m sure there are some aftermarket routines that include that in their bag of tricks. Either way, it’s an extra step that isn’t needed and a decision the user shouldn’t have to bother with.

---

<div class="post-metadata">

**Author:** ![Kobal2](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kobal2/32/20_2.png) [@Kobal2](https://boards.straightdope.com/u/Kobal2)\
**Post date:** [December 19, 2008, 7:26am UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/37 "2008-12-19T07:26:01Z")

</div>

> [@Musicat](#):
>
> Do you know how common it is for programs to create junk & work files that they _never_ delete even if _not_ interrupted? Very. They get scattered all over the drive. This kind of clean computing doesn’t seem to be important to most programs.

Be that as it may (and indeed, it’s very frequent), that’s just bad form. Just because the norm for coders these days is to not optimize their code for mem and disk usage anymore doesn’t make their half-assed efforts good and proper.

And frankly, for once I do believe Microsoft got things right. That’s rare enough a phenomenon 😃

> [@](#):
>
> The easiest solution (for file downloading) is to name the temp file something distinctive, like an extension of “$$$”. Then a periodic sweep of all files of this type will turn up any orphans and all can be deleted.

But such sweep will take longer than the 10s needed to copy a file from TEMP to E:\dad\work\archives\porn, wouldn’t it ? Especially for larger drives. I admit I’m not filesystem guru though.

> [@](#):
>
> In fact, you don’t even have to rename it at all. Just download to the final file name and be sure to lock the file until the download is complete. The only drawback to this scheme is that a directory listing in the middle of a download will show that file as existing, but with the wrong size and not openable. BFD.

Some peer-to-peer softs I used went that route, in fact they created a file that used the final name and actually used the total, completed space as soon as the download started (I assume they generate a field of zeroes that are progressively written over by the downloaded data, or something to that effect).

I always thought it was a crappy way of doing things, because short of opening the peer-to-peer program itself, I have no idea whether the file is useable or not.

> [@](#):
>
> And I don’t know of any basic system routine that “flushes the TEMP directory regularly,” although I’m sure there are some aftermarket routines that include that in their bag of tricks. Either way, it’s an extra step that isn’t needed and a decision the user shouldn’t have to bother with.

It was my understanding that Windows “Not enough space, do you want me to clean the disk ?” routines did that, but I may be mistaken - I never trusted those _not_ to clean unorphaned files and bork my stuff, so I’ve always done things by hand.

---

<div class="post-metadata">

**Author:** ![Turble](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@Turble](https://boards.straightdope.com/u/Turble)\
**Post date:** [December 19, 2008, 4:13pm UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/38 "2008-12-19T16:13:59Z")

</div>

[http://www.ccleaner.com/](http://www.ccleaner.com/)

Great for regaining disk space. I’ve never known it to cause any problems. And it’s free.

---

<div class="post-metadata">

**Author:** ![Kaio](https://avatars.discourse-cdn.com/v4/letter/k/c68b51/32.png) [@Kaio](https://boards.straightdope.com/u/Kaio)\
**Post date:** [December 20, 2008, 1:48am UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/39 "2008-12-20T01:48:47Z")

</div>

> [@DWMarch](#):
>
> Last but not least, hard drives are cheap and easy to install. Why not just buy a +500GB drive and never have this problem again?

Because my internal hard drive is 300 gig of mostly unused space. My external hard drive is 500 gig of entirely unused space. I don’t need a new hard drive and don’t have the money for one anyway… I’ll be squeezing blood from a stone when I buy the cloning software. I haven’t attempted to resize the partitions yet for reasons already discussed ad nauseum in this thread.

**Mr. Slant** , thanks, but it doesn’t really look like that page answers my specific questions.

---

<div class="post-metadata">

**Author:** ![Mr.Slant](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@Mr.Slant](https://boards.straightdope.com/u/Mr.Slant)\
**Post date:** [December 20, 2008, 2:10am UTC](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048/40 "2008-12-20T02:10:21Z")

</div>

No, no it doesn’t.  
Some software tools will make imaging a “plug and play” ordeal.  
You don’t need to format the drive to use the tools.

The whole recovery disk/ISO thing… well, recovery disks are a Windows feature you can read up on.  
The ISO thing… that varies from tool to tool.

Basically you boot from one media [or a special Windows mode], then create an image on a hard drive.  
Once you’ve got the image, if you need to go back, you boot from one media besides your HDD, then restore the image.  
It’s slow with such big drives, but works fairly simply.

During the backup there’s zero risk.  
During the restore, if you’ve got a good image, there’s also zero risk.

If you have a spare space to use, you can try restoring the image to a non-essential partition to test its functionality.

Some years back, I routinely did all of this with Partition Magic and Drive Image.  
Now the software in question is different, but I suspect it all works the same.

[Previous page](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048.md?page=1)

[Next page](https://boards.straightdope.com/t/c-windows-temp-can-i-dump-it/477048.md?page=3)
