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 ...
-
16th October 2007, 09:07 AM #1
- 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.
-
-
IDG Tech News
-
16th October 2007, 09:15 AM #2 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
-
-
16th October 2007, 02:55 PM #3
- Rep Power
- 0
Re: Need a script to copy a Folder into documents and seting
Worked a treat, thanks for the help.
-
-
16th October 2007, 03:08 PM #4 Re: Need a script to copy a Folder into documents and setings
Excellent! 
fooby
-
-
29th December 2007, 08:50 PM #5 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
-
-
29th December 2007, 09:00 PM #6 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,
-
-
29th December 2007, 09:05 PM #7
-
-
29th December 2007, 09:12 PM #8 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.
-
-
29th December 2007, 09:16 PM #9 Re: Need a script to copy a Folder into documents and setings
-
-
29th December 2007, 09:22 PM #10 Re: Need a script to copy a Folder into documents and setings
Is that .bat format?
Cheers
Z
-
-
29th December 2007, 09:46 PM #11
- Rep Power
- 14
Re: Need a script to copy a Folder into documents and seting

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.
-
-
29th December 2007, 09:51 PM #12 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
-
-
29th December 2007, 10:22 PM #13 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.
-
-
29th December 2007, 10:27 PM #14 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
-
-
29th December 2007, 10:37 PM #15 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:
Similar Threads
-
By link470 in forum Windows
Replies: 7
Last Post: 5th December 2007, 03:53 PM
-
By FN-GM in forum Windows
Replies: 10
Last Post: 14th August 2007, 07:03 PM
-
By tosca925 in forum How do you do....it?
Replies: 4
Last Post: 2nd October 2006, 08:15 PM
-
By SwedishChef in forum Scripts
Replies: 15
Last Post: 5th July 2006, 08:14 AM
-
By tosca925 in forum Windows
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
-
Forum Rules