Announcement

Collapse
No announcement yet.

Copy Scripting Issue -help-

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Copy Scripting Issue -help-

    hallo

    i need to copy one file to multiple folders (about 300)

    the folders are all under one central folder so its the same location

    i dont want to do it manually so any help would be appreciated

    i couldnt find any script or method to do this

    thanks

  • #2
    Re: Copy Scripting Issue -help-

    Not a script but I like the last answer here:
    http://answers.yahoo.com/question/in...7092323AAO0q1m
    Copy the file you want to paste...Hold down the Shift key if you want to select all folders or a group of folders next to each other or if the folders are not together..hold down the Ctrl key and select.... clicking once to highlight each file you want it copied to...Then right click...paste
    Also an interesting looking tool here:
    http://techie-buzz.com/utilites/copy...t-folders.html
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: Copy Scripting Issue -help-

      hi

      tried it , sadly it didnt work

      i always try the simple things first ....


      thanks anyway

      Comment


      • #4
        Re: Copy Scripting Issue -help-

        batch sample:

        Code:
        :: - Iterating with "For" -
        :: http://commandwindows.com/batchfiles-iterating.htm
        
        @echo off
        
        :: The File to Copy is
        Set "sourceFile=D:\DATA store\testfile.txt"
        
        :: Destination are all the directories in a central folder
        Set "centralFolder=C:\temp\New Folder"
        
        :: List all the directories in a central folder
        :: (but NOT recursively through the sub-directories)
        for /d %%A in ("%centralFolder%\*.") do (
           xcopy /y "%sourceFile%" "%%~fA\"
        )
        :end
        \Rems

        This posting is provided "AS IS" with no warranties, and confers no rights.

        __________________

        ** Remember to give credit where credit's due **
        and leave Reputation Points for meaningful posts

        Comment


        • #5
          Re: Copy Scripting Issue -help-

          Thank you so much

          i tested it and it seems to work !!!


          I will move it to production this evening


          thank you again

          Comment

          Working...
          X