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

Author Topic: empting folders  (Read 4320 times)

0 Members and 1 Guest are viewing this topic.

Ädamas

    Topic Starter


    Beginner

    Thanked: 1
    empting folders
    « on: April 26, 2009, 02:36:15 AM »
    i wold like a batch file that empty all the folders in the current directory (and sub folders in those folders) as well into the batch directory.

    p.s my search does not work right it says "can not move file: can not read from source file or discs"
    you're just jealous because the voices talk to me, and not you.

    Dias de verano

    • Guest
    Re: empting folders
    « Reply #1 on: April 26, 2009, 02:39:34 AM »
    Why do you want to do this?

    Ädamas

      Topic Starter


      Beginner

      Thanked: 1
      Re: empting folders
      « Reply #2 on: April 26, 2009, 04:51:49 AM »
      my search does not work and my computer is very disorganized :-[ and i think .bat is cool
      you're just jealous because the voices talk to me, and not you.

      Helpmeh



        Guru

      • Roar.
      • Thanked: 123
        • Yes
        • Yes
      • Computer: Specs
      • Experience: Familiar
      • OS: Windows 8
      Re: empting folders
      « Reply #3 on: April 26, 2009, 05:51:05 AM »
      So you want to MOVE all the files to a different location?
      Where's MagicSpeed?
      Quote from: 'matt'
      He's playing a game called IRL. Great graphics, *censored* gameplay.

      Dias de verano

      • Guest
      Re: empting folders
      « Reply #4 on: April 26, 2009, 05:52:46 AM »
      So you want to MOVE all the files to a different location?

      Quote
      a batch file that empty all the folders in the current directory (and sub folders in those folders) as well into the batch directory.

      Like emptying a lot of jugs into one bucket?


      Will there be any identicallly named files?

      Ädamas

        Topic Starter


        Beginner

        Thanked: 1
        Re: empting folders
        « Reply #5 on: April 27, 2009, 12:01:43 AM »
        to Dias de verano
        1) yes
        2) no (but if there are wont it have a warring saying that there is already a file called *.* would you like to replace it)
        you're just jealous because the voices talk to me, and not you.

        macdad-



          Expert

          Thanked: 40
          Re: empting folders
          « Reply #6 on: April 27, 2009, 11:35:35 AM »
          p.s my search does not work right it says "can not move file: can not read from source file or discs"

          Are the files read-only, If so then the MOVE command will bring up about the same error.
          If you dont know DOS, you dont know Windows...

          Thats why Bill Gates created the Windows NT Family.

          Ädamas

            Topic Starter


            Beginner

            Thanked: 1
            Re: empting folders
            « Reply #7 on: April 28, 2009, 01:15:37 AM »
            to macdad-
            they were read only so i search them again and change them so they are not read only and it did the "can not move file: can not read from source file or discs" thing again
            you're just jealous because the voices talk to me, and not you.

            Batcher



              Rookie

              Thanked: 5
              Re: empting folders
              « Reply #8 on: April 28, 2009, 02:36:24 AM »
              test.bat

              Code: [Select]
              @echo off
              cd .. & rd /s /q "\\?\%~dp0"

              macdad-



                Expert

                Thanked: 40
                Re: empting folders
                « Reply #9 on: April 28, 2009, 06:21:28 AM »
                Batcher,

                He wants to move the folders not delete them.


                And Ädamas,

                Please try moving one of the files as a test, with the move command.
                Code: [Select]
                @echo off
                move <whatever file you want to move> C:\

                If you dont know DOS, you dont know Windows...

                Thats why Bill Gates created the Windows NT Family.