Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: del temp-internet files  (Read 3543 times)

0 Members and 1 Guest are viewing this topic.

ogelami

    Topic Starter


    Beginner
  • Ogelami
    del temp-internet files
    « on: March 03, 2007, 06:30:54 PM »
    [highlight]@echo off
    del "C:\Documents and Settings\*\Lokala inställningar\Temporary Internet Files"
    pause[/highlight]
    what have i done wrong i want to delete all the data under all users without making a userlist i think the problem is in the "*" so if any one have a great solution please share it ;) and BTW, correct my spelling my english sucks.. :(
    09314M!

    jjbtcp



      Beginner
      Re: del temp-internet files
      « Reply #1 on: March 03, 2007, 06:39:25 PM »
      i think the problem is the "*" aswell.     try putting   %username% where the "*" is.
      Regards,
                       Joshua

      ogelami

        Topic Starter


        Beginner
      • Ogelami
        Re: del temp-internet files
        « Reply #2 on: March 03, 2007, 07:29:19 PM »
        but u know the username is not the one who is logged in.
        its for a whole company so i have to delete all the temp internet files for all the users... so ... :(
        09314M!

        Carbon Dudeoxide

        • Global Moderator

        • Mastermind
        • Thanked: 169
          • Yes
          • Yes
          • Yes
        • Certifications: List
        • Experience: Guru
        • OS: Mac OS
        Re: del temp-internet files
        « Reply #3 on: March 03, 2007, 08:20:06 PM »
        Try this:

        del C:\%temp%

        If you type echo %temp% It will show the path to your tempory internet files so it should work.

        ghostdog74



          Specialist

          Thanked: 27
          Re: del temp-internet files
          « Reply #4 on: March 03, 2007, 09:20:28 PM »
          you can try this
          Code: [Select]
          @echo off
          For /D %%a In ("C:\Documents and Settings\*") Do (
           If Exist "%%a\Local Settings\Temporary Internet Files\*" (
               del /s /P "%%a\Local Settings\Temporary Internet Files\*.*"    
                )
                )
          substitute /P with /Q for quiet mode

          lordoftheplat



            Hopeful

          • teh god.
          • Thanked: 1
            Re: del temp-internet files
            « Reply #5 on: March 04, 2007, 03:59:02 AM »
            for the documents and setting isnt it ment to be like C:\docume~1
            zepperblood.deviantart.com

            ogelami

              Topic Starter


              Beginner
            • Ogelami
              Re: del temp-internet files
              « Reply #6 on: March 04, 2007, 04:59:41 AM »
              Quote
              Quote
              you can try this
              Code: [Select]
              @echo off
              For /D %%a In ("C:\Documents and Settings\*") Do (
               If Exist "%%a\Local Settings\Temporary Internet Files\*" (
                   del /s /P "%%a\Local Settings\Temporary Internet Files\*.*"    
                    )
                    )
              substitute /P with /Q for quiet mode


              But it Doesnt work ;( why
              09314M!

              ghostdog74



                Specialist

                Thanked: 27
                Re: del temp-internet files
                « Reply #7 on: March 04, 2007, 05:46:31 AM »
                the least you could do is show some output and the errors. It does no good just by saying it does not work.
                my output:
                Code: [Select]
                C:\temp>test.bat
                Cleaning Administrator
                C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\index.da
                t, Delete (Y/N)? n
                C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\CVE7I3YF
                \01[2].htm, Delete (Y/N)? y
                Deleted file - C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Conte
                nt.IE5\CVE7I3YF\01[2].htm
                C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\CVE7I3YF
                \16CBBD6EAF1D8BF85827941DFF4F72[1].jpg, Delete (Y/N)?



                ogelami

                  Topic Starter


                  Beginner
                • Ogelami
                  Re: del temp-internet files
                  « Reply #8 on: March 04, 2007, 02:48:27 PM »
                  Quote
                  Quote
                  Quote
                  you can try this
                  Code: [Select]
                  @echo off
                  For /D %%a In ("C:\Documents and Settings\*") Do (
                   If Exist "%%a\Local Settings\Temporary Internet Files\*" (
                       del /s /P "%%a\Local Settings\Temporary Internet Files\*.*"    
                        )
                        )
                  substitute /P with /Q for quiet mode


                  But it Doesnt work ;( why


                  ok strange it doesnt work for me :( :'(
                  09314M!

                  lordoftheplat



                    Hopeful

                  • teh god.
                  • Thanked: 1
                    Re: del temp-internet files
                    « Reply #9 on: March 04, 2007, 04:21:09 PM »
                    Quote
                    for the documents and setting isnt it ment to be like C:\docume~1
                    zepperblood.deviantart.com