+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 22
Scripts Thread, Need a script to copy a Folder into documents and setings in Coding and Web Development; I am using a program called Cubase SE which has been set up with a specific configuration by the teacher ...
  1. #1

    Join Date
    Jul 2007
    Location
    Ripon
    Posts
    5
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Need a script to copy a Folder into documents and setings

    I am using a program called Cubase SE which has been set up with a specific configuration by the teacher which is required for all users who log onto the PCs in music suite. My problem is that the configuration files are stored within the local profile on each PC and a fresh config is created when a user logs on.

    I need a script to copy the Config folder from a location into C:\Documents and Settings\%username%\Application Data for each user who logs onto the PC.

    I have tried a few things but I am not sure of the exact syntax.

    Any Ideas would be appreciated.

    Many Thanks.

  2. #2
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    18

    Re: Need a script to copy a Folder into documents and setings

    robocopy \\network\folder\Cubase "c:\documents and settings\%username%\application data\Cubase" /e

    At a guess. This will require robocopy to exist on these music computers. this can be added to a standard logon script, or added to a script that only applies to these computers (by many methods)

    fooby

  3. #3

    Join Date
    Jul 2007
    Location
    Ripon
    Posts
    5
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Need a script to copy a Folder into documents and seting

    Worked a treat, thanks for the help.

  4. #4
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    18

    Re: Need a script to copy a Folder into documents and setings

    Excellent!

    fooby

  5. #5

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,392
    Thank Post
    797
    Thanked 1,588 Times in 1,391 Posts
    Blog Entries
    10
    Rep Power
    427

    Re: Need a script to copy a Folder into documents and setings

    Hi

    How do i alter this so it will copy a shortcut? What is the robocopy bit as well please?

    Thank you

    Z

  6. #6

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    143

    Re: Need a script to copy a Folder into documents and setings

    Mr FN-Greatermanchester sir, you need to learn to use google

    Bung robocopy into google, first result is a detailed wikipedia article telling you where to get it, and how to use it!

    Mike,

  7. #7

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,392
    Thank Post
    797
    Thanked 1,588 Times in 1,391 Posts
    Blog Entries
    10
    Rep Power
    427

    Re: Need a script to copy a Folder into documents and seting

    ops: I thought Robocopy had something to do with lego!

    How do i do it without Robocopy please?

    Z

  8. #8

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    143

    Re: Need a script to copy a Folder into documents and setings

    if it's just a single shortcut, just use the normal windows copy command,

    i.e. something like;
    copy \\servername\sharename\folder\shortcut.lnk "c:\documents and settings\%username%\start menu\programs\"

    Mike.

  9. #9

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,392
    Thank Post
    797
    Thanked 1,588 Times in 1,391 Posts
    Blog Entries
    10
    Rep Power
    427

    Re: Need a script to copy a Folder into documents and setings

    Cheers mate

    Z

  10. #10

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,392
    Thank Post
    797
    Thanked 1,588 Times in 1,391 Posts
    Blog Entries
    10
    Rep Power
    427

    Re: Need a script to copy a Folder into documents and setings

    Is that .bat format?

    Cheers

    Z

  11. #11

    Join Date
    Mar 2006
    Posts
    537
    Thank Post
    2
    Thanked 3 Times in 2 Posts
    Rep Power
    18

    Re: Need a script to copy a Folder into documents and seting

    Quote Originally Posted by FN-Greatermanchester
    Is that .bat format?

    Cheers

    Z
    Yes. BAT or CMD because the script contains commands as you would type at the command prompt.

    CMD scripts allow extra features to the batch script language introduced with Windows NT.

  12. #12

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,392
    Thank Post
    797
    Thanked 1,588 Times in 1,391 Posts
    Blog Entries
    10
    Rep Power
    427

    Re: Need a script to copy a Folder into documents and seting

    copy \\fn.local\SYSVOL\FN.local\shortcuts\Outlook Web Access.lnk "c:\documents and settings\All Users\start menu\"
    Isnt working

  13. #13

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    143

    Re: Need a script to copy a Folder into documents and setings

    Put speech marks round the "\\fn.local\ . . . . " part as well as the destination. Reason for this, because it has spaces in it, my example didn't so I didn't type them.

    Mike.

  14. #14

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,392
    Thank Post
    797
    Thanked 1,588 Times in 1,391 Posts
    Blog Entries
    10
    Rep Power
    427

    Re: Need a script to copy a Folder into documents and seting

    Now its this

    copy "\\fn.local\SYSVOL\FN.local\shortcuts\Outlook Web Access.lnk" "c:\documents and settings\All Users\start menu\"
    Still now having it

    Thanks Manic for helping on the last couple of things i do appreciate it.

    Z

  15. #15

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    143

    Re: Need a script to copy a Folder into documents and setings

    I thought for a moment that copy may not work from unc paths, but just logged into work to try it, and it does.

    Has the user running the script got write access to the 'all users' area? Check the permissions on the actual shortcut as well.

    Just tried this copying from my sysvol share at work to a local c:\ folder, and it worked fine for me.

    Mike.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. My Documents Folder Redirection to a Share?
    By link470 in forum Windows
    Replies: 7
    Last Post: 5th December 2007, 02:53 PM
  2. Replies: 10
    Last Post: 14th August 2007, 07:03 PM
  3. VB Script ti check for folder and then copy contents to PC
    By tosca925 in forum How do you do....it?
    Replies: 4
    Last Post: 2nd October 2006, 08:15 PM
  4. Script to Create My Documents Subject Folders
    By SwedishChef in forum Scripts
    Replies: 15
    Last Post: 5th July 2006, 08:14 AM
  5. Replies: 6
    Last Post: 20th October 2005, 06:48 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
  •