windows script that copy one file into multiple folders ??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zentz
    Confirmed User
    • Nov 2003
    • 8062

    #1

    windows script that copy one file into multiple folders ??

    Is there maybe a script that will automaticly copy one file in mulitple folders and subfolders ?

    i have to put one .html file into the hundreds of folders and it would be awesome if there is an easier way to do so...
    Programs that owe me money ---- Epassporte.com ~ $2700 | Protraffic.com ~ $2600 | XonDemand.com ~ $3000

    Email: [email protected]
  • zentz
    Confirmed User
    • Nov 2003
    • 8062

    #2
    bump bump
    Programs that owe me money ---- Epassporte.com ~ $2700 | Protraffic.com ~ $2600 | XonDemand.com ~ $3000

    Email: [email protected]

    Comment

    • jjjay
      Registered User
      • Jun 2005
      • 1813

      #3
      dir *.* /ad /b > list.txt (going from memory - this lists all folders and puts them in a text file

      then just do a wildcard search and replace using textpad to add "copy filename" to the start of each line

      then rename text file to file.bat

      then double click it

      Comment

      • zentz
        Confirmed User
        • Nov 2003
        • 8062

        #4
        Originally posted by jjjay
        dir *.* /ad /b > list.txt (going from memory - this lists all folders and puts them in a text file

        then just do a wildcard search and replace using textpad to add "copy filename" to the start of each line

        then rename text file to file.bat

        then double click it
        nice!! do you know how to bulk delete all the *.mpeg files also ?
        Programs that owe me money ---- Epassporte.com ~ $2700 | Protraffic.com ~ $2600 | XonDemand.com ~ $3000

        Email: [email protected]

        Comment

        • HorseShit
          Too lazy to set a custom title
          • Dec 2004
          • 17513

          #5
          Originally posted by zentz
          nice!! do you know how to bulk delete all the *.mpeg files also ?
          format c:

          Comment

          • jjjay
            Registered User
            • Jun 2005
            • 1813

            #6
            Originally posted by zentz
            nice!! do you know how to bulk delete all the *.mpeg files also ?
            use windows search

            press f3 in windows explorer

            search for *.extension

            select all

            delete

            Comment

            • zentz
              Confirmed User
              • Nov 2003
              • 8062

              #7
              Originally posted by jjjay
              use windows search

              press f3 in windows explorer

              search for *.extension

              select all

              delete
              nice.. about that list.txt thing.. it will create only the list of folders but i need the subfolders included too.. any ideas ?
              Programs that owe me money ---- Epassporte.com ~ $2700 | Protraffic.com ~ $2600 | XonDemand.com ~ $3000

              Email: [email protected]

              Comment

              • jjjay
                Registered User
                • Jun 2005
                • 1813

                #8
                Originally posted by zentz
                nice.. about that list.txt thing.. it will create only the list of folders but i need the subfolders included too.. any ideas ?
                add /s as a switch

                if you go to dos and type dir /? it'll give you more info

                Comment

                Working...