+ Post New Thread
Results 1 to 3 of 3
Scripts Thread, Scripting help in Coding and Web Development; I currently have been tasked to find a script to: 1. walk a system tree and find all .pst files ...
  1. #1

    Join Date
    Jun 2013
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Scripting help

    I currently have been tasked to find a script to:
    1. walk a system tree and find all .pst files on a netwotk share..ie drive:\home\username\mail\*.pst
    2. Copy said files to a new location keeping the sytem tree in tack, but all directories empty except the target folder.
    3. Then set ownership of each pst to the username.
    Any thought would be greatly appreciated. I can do it manually, but 300 users would take some time.


    Thanks.

  2. #2
    djwingfield's Avatar
    Join Date
    Mar 2010
    Posts
    33
    Thank Post
    7
    Thanked 10 Times in 10 Posts
    Rep Power
    11
    I believe this should work

    ROBOCOPY "Source" "Destination" *.pst /E /sec

    Sorry cant check if works currently on iPad.
    Last edited by djwingfield; 14th June 2013 at 07:41 PM.

  3. #3


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    should be a one liner with bash

    Code:
    find c:\home\username\mail\ "*.pst" -exec rsync -R {} c:\wherever ;\ -exec setfacl -R -m user:username:rwx c:\wherever\{} ;\
    not sure if the setfacl will work with cygwin as this is a unix to windows translation.
    Last edited by CyberNerd; 14th June 2013 at 07:22 PM.

SHARE:
+ Post New Thread

Similar Threads

  1. PHP script help
    By FN-GM in forum Web Development
    Replies: 18
    Last Post: 19th August 2008, 02:52 PM
  2. Logon Script Help
    By djones in forum Scripts
    Replies: 17
    Last Post: 13th March 2008, 06:00 PM
  3. Proxy Authentication Script - HELP!!!!!
    By chrisa in forum Scripts
    Replies: 9
    Last Post: 7th March 2008, 04:34 PM
  4. AutoIt Script Help - Get Last Changed File
    By russdev in forum Scripts
    Replies: 8
    Last Post: 8th August 2007, 05:34 AM
  5. One PC refuses to run script! Help!!!
    By woody in forum Scripts
    Replies: 6
    Last Post: 5th October 2005, 11:37 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •