+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 28 of 28
Learning Network Manager Thread, Can you "deploy" a folder? in Technical; But have you ever tried using wildcards in the source path? From the GPP help: Source file(s) Type the location ...
  1. #16

    sparkeh's Avatar
    Join Date
    May 2007
    Posts
    7,038
    Thank Post
    1,376
    Thanked 1,782 Times in 1,202 Posts
    Blog Entries
    22
    Rep Power
    532
    But have you ever tried using wildcards in the source path?
    From the GPP help:
    Source file(s) Type the location from which to copy the Source file(s). This location can be a fully qualified UNC path or a path on a local or mapped drive from the perspective of the client. This field can contain variables.
    This field can also contain single character (?) and multiple character (*) wildcards, allowing you to copy or modify multiple files.
    This option is available only if the action selected is Create, Replace, or Update.

  2. #17


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,820
    Thank Post
    231
    Thanked 890 Times in 765 Posts
    Rep Power
    302
    Quote Originally Posted by sparkeh View Post
    But have you ever tried using wildcards in the source path?
    From the GPP help:
    honesly no as its gui based i assumed it would let me shift/control/folder select if it allowed it hmm i will have to have a look at that one day.

    so instead of having \\server\share\folder\file1.txt i could paste \\server\share\folder\*.txt there etc?

  3. #18

    sparkeh's Avatar
    Join Date
    May 2007
    Posts
    7,038
    Thank Post
    1,376
    Thanked 1,782 Times in 1,202 Posts
    Blog Entries
    22
    Rep Power
    532
    Only just noticed this, but if you put a * in the path the 'Destination file' box is relabelled to 'Destination folder' (not completely intuitive!)
    So yeah you put source = "\\some_server_share\files\*" and destination = "c:\files_here_please" and all the files would be copied from the server share to the local machine.

  4. Thanks to sparkeh from:

    sted (26th September 2012)

  5. #19


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,820
    Thank Post
    231
    Thanked 890 Times in 765 Posts
    Rep Power
    302
    its letting me do it but files arnt being copied (granted its a slightly lazy copy from netlogon to test) and the folder exists i gppd that as well that worked fine
    gppfile2.jpg

  6. #20


    Join Date
    Sep 2008
    Posts
    1,821
    Thank Post
    338
    Thanked 262 Times in 214 Posts
    Rep Power
    120
    Quote Originally Posted by sted View Post
    its letting me do it but files arnt being copied (granted its a slightly lazy copy from netlogon to test) and the folder exists i gppd that as well that worked fine
    gppfile2.jpg
    I've done it without the *.* in the destination...so you would have C:\Test01\. Not sure if that makes a difference or not to be honest.

  7. Thanks to penfold from:

    sted (26th September 2012)

  8. #21


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,820
    Thank Post
    231
    Thanked 890 Times in 765 Posts
    Rep Power
    302
    Quote Originally Posted by penfold View Post
    I've done it without the *.* in the destination...so you would have C:\Test01\. Not sure if that makes a difference or not to be honest.
    yup sigh
    dosent seem to do subfolders though (though that may just be a case of waiting i suppose after gpupdate /force)

    typical i log off give it one last check and my extra folder copied across
    Last edited by sted; 26th September 2012 at 05:28 PM.

  9. #22

    Join Date
    Jan 2007
    Location
    Nottinghamshire
    Posts
    530
    Thank Post
    1
    Thanked 84 Times in 58 Posts
    Rep Power
    38
    Numbershark and Wordshark - Wiki

    Or use blinksync.exe

  10. #23
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,548
    Thank Post
    524
    Thanked 295 Times in 271 Posts
    Rep Power
    84
    If im scripting a file / folder copy in the script I usually add a drive mount, and then once the copy is finished do a "net use * /del /yes" or only dismount the drive im copying from.

    I hope you get what I mean, It seems to be the quickest way I've found of doing things like this. I have a logon tracker that does just this except it writes to a log file rather than copy a file.

    So when a user logs in the drive is mounted then the logon details of that user using variables like time, date. machine name, user name etc are all added to the log file and its all done that quick the users never see the mapped drive, and if they try to access it they cant anyway.

    Hope this helps.

  11. #24

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,538
    Thank Post
    2,399
    Thanked 775 Times in 469 Posts
    Blog Entries
    2
    Rep Power
    548
    Ok, heres a question. Say the script is running in the background, is halfway through and then suddenly...i dunno, the battery goes on the netbook, or a kid turns the machine off.

    Does it compare the folders when checking ifexist? Im just thinking, if the folder is there but half the files are missing what does it do?

  12. #25


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,820
    Thank Post
    231
    Thanked 890 Times in 765 Posts
    Rep Power
    302
    Quote Originally Posted by Little-Miss View Post
    Ok, heres a question. Say the script is running in the background, is halfway through and then suddenly...i dunno, the battery goes on the netbook, or a kid turns the machine off.

    Does it compare the folders when checking ifexist? Im just thinking, if the folder is there but half the files are missing what does it do?
    depends if the file you check for is copied first or last

  13. #26

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    9,475
    Thank Post
    638
    Thanked 2,118 Times in 1,454 Posts
    Blog Entries
    19
    Rep Power
    882
    Quote Originally Posted by Little-Miss View Post
    Ok, heres a question. Say the script is running in the background, is halfway through and then suddenly...i dunno, the battery goes on the netbook, or a kid turns the machine off.

    Does it compare the folders when checking ifexist? Im just thinking, if the folder is there but half the files are missing what does it do?
    That depends whether it's searching for one file or if it's a recursive search.

    Batch file-wise, you're looking at FOR /F
    Last edited by X-13; 27th September 2012 at 10:19 PM.

  14. #27

    Join Date
    Jan 2007
    Location
    Nottinghamshire
    Posts
    530
    Thank Post
    1
    Thanked 84 Times in 58 Posts
    Rep Power
    38
    No, that's why you should make an MSI, it's an entire system designed over 10 years to copy files with no errors.

  15. #28

    Jawloms's Avatar
    Join Date
    Aug 2007
    Posts
    834
    Thank Post
    177
    Thanked 105 Times in 73 Posts
    Rep Power
    185
    Couldn't you make it in to a package and deploy the package?



SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 4
    Last Post: 3rd January 2012, 06:51 AM
  2. Can anyone supply a quote for laptop or desktop?
    By rocknrollstar in forum Recommended Suppliers
    Replies: 1
    Last Post: 4th March 2009, 09:06 AM
  3. Can you run the KS3 Test server stuff on an XP machine?
    By RoyG in forum ICT KS3 SATS Tests
    Replies: 6
    Last Post: 19th April 2007, 01:44 AM
  4. Can you point me in the direction of..
    By saundersmatt in forum General Chat
    Replies: 3
    Last Post: 28th September 2006, 08:42 AM
  5. Replies: 3
    Last Post: 27th July 2006, 02:36 PM

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
  •