+ 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
    6,259
    Thank Post
    1,138
    Thanked 1,463 Times in 980 Posts
    Blog Entries
    22
    Rep Power
    457
    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,210
    Thank Post
    218
    Thanked 812 Times in 694 Posts
    Rep Power
    274
    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
    6,259
    Thank Post
    1,138
    Thanked 1,463 Times in 980 Posts
    Blog Entries
    22
    Rep Power
    457
    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,210
    Thank Post
    218
    Thanked 812 Times in 694 Posts
    Rep Power
    274
    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,673
    Thank Post
    310
    Thanked 221 Times in 197 Posts
    Rep Power
    107
    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,210
    Thank Post
    218
    Thanked 812 Times in 694 Posts
    Rep Power
    274
    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 04:28 PM.

  9. #22

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

    Or use blinksync.exe

  10. #23
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    East Yorkshire
    Posts
    2,152
    Thank Post
    439
    Thanked 237 Times in 216 Posts
    Blog Entries
    2
    Rep Power
    68
    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
    Birmingham
    Posts
    5,350
    Thank Post
    2,330
    Thanked 623 Times in 419 Posts
    Blog Entries
    2
    Rep Power
    508
    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,210
    Thank Post
    218
    Thanked 812 Times in 694 Posts
    Rep Power
    274
    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
    8,004
    Thank Post
    508
    Thanked 1,591 Times in 1,122 Posts
    Blog Entries
    19
    Rep Power
    700
    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 09:19 PM.

  14. #27

    Join Date
    Jan 2007
    Location
    Nottinghamshire
    Posts
    530
    Thank Post
    1
    Thanked 84 Times in 58 Posts
    Rep Power
    37
    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
    793
    Thank Post
    157
    Thanked 102 Times in 71 Posts
    Rep Power
    178
    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, 05: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, 08: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, 12:44 AM
  4. Can you point me in the direction of..
    By saundersmatt in forum General Chat
    Replies: 3
    Last Post: 28th September 2006, 07:42 AM
  5. Replies: 3
    Last Post: 27th July 2006, 01: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
  •