Deleting XP Multiple Users Temp Internet Files


Recommended Posts

Hi,

When I go onsite to a clients systems and have to run a vrius checker or scan on their system, it takes ages due to the crap in temporary internet files and temp files.

If the system has one user then it's not so much of a problem as I can quickly delete the temporary internet files and temp files.

The problem I encounter is when there are multiple users on the the system. It takes too long to log in as each user as do the deletion.

Is there an easier way? Maybe a little freeware app that can do the job? OR even a simple batch file to delete all the temp files in one go regardless of how many users?

Hope I've explained myself correctly :) and hope someone can come up with a good idea :)

Many thanks

I know I can log in as Administrator and set "Folder Options" to "Show hidden files and folders", then delete the contents of "Temporary Internet Files" and "Temp" under the "Local Settings" folder for each user.

But that is long and tedious. I'm hopinh a simple batch file or standalone exe app could do it. I don't want to have to install an app on the users pc to do the task.

I know the following batch file will delete the contents of "Temporary Internet Files" for the currently logged on user...

RD "%Systemdrive%\documents and settings\%USERNAME%\local settings\Temporary Internet Files\" /S /Q
MD "%Systemdrive%\documents and settings\%USERNAME%\local settings\Temporary Internet Files"

Is there something all those lines that would do it for all user account rather than just the currently logged on user?

I hope I'm explaining myself properly :)

Many thanks

Ok, here's what I've got so far...

REM Written by Sony Nair (UniqueTouch)
REM (http://www.uniquetouch.co.uk)
REM v1.0 02/02/2004
cls
@echo off
title Temp Files Remover for Windows XP
echo.
echo This will delete the follwing files for the currently logged in user on WinXP...
echo.
echo - Windows Prefetch Folder Content
echo - Windows Temp Files
echo - Temp Files Content
echo - Temporary Internet Files Content
echo.
echo Press any key to continue or close this window to exit.
Pause > nul
echo.
echo Emptying Windows Prefetch folder...
del "%Systemdrive%\windows\prefetch\*.*" /q
echo Done.
echo.
echo Removing Windows Temp Files...
rd "%systemdrive%\windows\Temp" /s /q
md "%systemdrive%\windows\Temp"
echo Done.
echo.
echo Removing Temp Files...
rd "%Systemdrive%%homepath%\local settings\Temp\" /s /q
md "%Systemdrive%%homepath%\local settings\Temp"
echo Done.
echo.
echo Removing Temporary Internet Files...
rd "%Systemdrive%%homepath%\local settings\Temporary Internet Files\" /s /q
md "%Systemdrive%%homepath%\local settings\Temporary Internet Files"
echo Done.
echo.
echo.
echo Deletion finished...
echo.
echo Press any key or close this window to exit.
Pause > nul

But the deletion of the "Temp" files and "Temporary Internet Files" is only for the currently logged on user.

Anyone got any ideas of how I can do it for other accounts without hardcosing the account names in?

P.s. I've attched the cmd file in case anyone wants to use what I have done so far.

DelTempFiles_WinXP.zipFetching info...

i want to know this too... :hmmm: it's quite annoying, for similar reasons.

i can think of a workaround:

in internet options, click the advanced tab. scroll to the bottom and check the box labeled "empty temporary internet files folder when browser is closed". whenever a user closes all IE windows (logoff) their cache will be emptied. but this isn't exactly what i'm looking for...

  gameguy said:
i want to know this too... :hmmm: it's quite annoying, for similar reasons.

i can think of a workaround:

in internet options, click the advanced tab. scroll to the bottom and check the box labeled "empty temporary internet files folder when browser is closed". whenever a user closes all IE windows (logoff) their cache will be emptied. but this isn't exactly what i'm looking for...

Thats a good idea gameguy, thanks.

Obviously thats only an otion I can use once I've visited the users machine which will save me the hassle of deleting temp inet files next time round.

I'm sure using CMD Scripting there is a way to figure out to call the user account names and then insert them using variables into a script similar to above.

Anybody able to shed some light on CMD Scripting?

Many thanks

Hi hurtng1,

Thanks for the code...

I understand what you say about how to use the "%%8".

But I would like to understand the code better if I can.

Can you explain the code or if possible point me to a site that has a tutorial?

Many thanks

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • They already are small. Have you seen the size of Linux icons?
    • I thought I could download the ringtone.
    • Foxconn to make iPhone casings in India as Apple shifts more production from China by Sagar Naresh Bhavsar It was recently reported that Donald Trump was unhappy with Tim Cook and threatened Apple with a 25% tariff if iPhones weren't produced in America. While the exact reason is unclear, some speculated that Trump's anger had to do with Cook skipping the Middle East trip with him, which was attended by other major company CEOs. Many believed that Apple came under the radar because of its plans for a $1.5 billion iPhone production plant in India. True or not, Apple is facing a tough situation as Trump has already imposed hefty tariffs on China, where the majority of iPhones are made. In a move to reduce dependence on China, Apple planned to shift its production from China to India, where tariffs are relatively lower. In line with this, a fresh report by The Economic Times suggests that Apple's iPhone assembler, Foxconn, has decided to start producing iPhone casings in India. Sources claim that a new unit is being planned at the ESR Industrial Park in Oragadam, Tamil Nadu. The area is close to the upcoming display module manufacturing plant. Until now, Tata Electronics was the one producing iPhone casings in India. However, Foxconn, which was assembling iPhones in the country at its plant in Sriperumbudur, will start making iPhone casings as well. This move suggests that Foxconn is helping Apple move more production out of China to India. Prabhu Ram, vice president, industry research group, CyberMedia Research, said, Foxconn has already ramped up its India push. The company recently started production of Apple AirPods in Hyderabad for exports and is also setting up an iPhone production plant in Bengaluru. Casings only make up about 2-3% of the total iPhone cost, making them locally helps Apple reduce costs, and also helps avoid hefty tariffs.
    • I loved the initial compact Start Menu present in Windows 10. It was tiny, awesome and super fast without any Store apps clutter.
    • BBC threatens Perplexity with legal action over content scraping by Paul Hill Image via Depositphotos.com The UK’s public broadcaster, BBC, has written a letter to Perplexity, the AI search startup, asking it to stop scraping articles from its websites, delete existing copies of content, and propose some sort of financial compensation if it would like to carry on scraping data. If the demands are not met, BBC may seek an injunction against the startup citing alleged misuse of its intellectual property. BBC is probably responding in this way because it has seen other news organizations cement deals with firms like OpenAI and Mistral. The income stream allows news organizations to raise more funds and also cover the costs of the extra load on their servers caused by AI scraping. For anybody not familiar with Perplexity, it’s a bit like ChatGPT but has a much stronger emphasis on searching the web to find information. You can ask it anything you want to know about and it very quickly searches online and constructs a specific response to your question based on what it has found. The company offers many of its features for free, but does have Perplexity Pro, which costs money. Essentially, Perplexity is making money from publishers by using their content to improve its own product, but not paying them all. Perplexity's defense and existing publisher programs In a statement to the Financial Times, Perplexity labeled the BBC’s claims as "manipulative and opportunistic". The startup accused the broadcaster of having “a fundamental misunderstanding of technology, the internet and intellectual property law.” This is not the first time Perplexity has had a run-in with the media. Forbes and Wired accused it of plagiarizing content from their websites and The New York Times sent the company a cease and desist notice to stop using its content for AI purposes. To assuage publishers, Perplexity has set up a revenue sharing program, which includes TIME, Fortune, Der Spiegel, and others. According to Digiday, the revenue share was up to 25%. It’s not clear if BBC has tried engaging through this avenue or if it wants to try to squeeze the startup for a bigger slice. The escalating battle over AI and intellectual property Even if you only keep up with AI developments in passing, you’ll likely have seen that AI models need to be trained on vast amounts of data, much of which is copyrighted. There is an ongoing debate about whether these companies should be allowed to train on this data, or first seek out permission from the copyright holders. The move from the BBC could spur other publishers on to try and get themselves a better deal from Perplexity. Alternatively, Perplexity could remove BBC content from its platform and stop pulling information from there. It could probably find most of the information elsewhere, but if Perplexity tried to pull this too much it would eventually end up pretty useless with not a lot of content. Overall, this is just one of many ongoing legal issues surrounding AI, but once a conclusion has been reached, it could set a precedent about how AI companies should go about getting content from publishers. Source: FT via Reuters
  • Recent Achievements

    • One Month Later
      KynanSEIT earned a badge
      One Month Later
    • One Month Later
      gowtham07 earned a badge
      One Month Later
    • Collaborator
      lethalman went up a rank
      Collaborator
    • Week One Done
      Wayne Robinson earned a badge
      Week One Done
    • One Month Later
      Karan Khanna earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      678
    2. 2
      ATLien_0
      274
    3. 3
      Michael Scrip
      220
    4. 4
      +FloatingFatMan
      171
    5. 5
      Steven P.
      160
  • Tell a friend

    Love Neowin? Tell a friend!