sradams1977 Posted October 16, 2007 Posted October 16, 2007 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.
fooby Posted October 16, 2007 Posted October 16, 2007 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
sradams1977 Posted October 16, 2007 Author Posted October 16, 2007 Worked a treat, thanks for the help.
FN-GM Posted December 29, 2007 Posted December 29, 2007 Hi How do i alter this so it will copy a shortcut? What is the robocopy bit as well please? Thank you Z
maniac Posted December 29, 2007 Posted December 29, 2007 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,
FN-GM Posted December 29, 2007 Posted December 29, 2007 :oops: I thought Robocopy had something to do with lego! How do i do it without Robocopy please? Z
maniac Posted December 29, 2007 Posted December 29, 2007 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.
ITWombat Posted December 29, 2007 Posted December 29, 2007 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.
FN-GM Posted December 29, 2007 Posted December 29, 2007 copy \\fn.local\SYSVOL\FN.local\shortcuts\Outlook Web Access.lnk "c:\documents and settings\All Users\start menu\" Isnt working
maniac Posted December 29, 2007 Posted December 29, 2007 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.
FN-GM Posted December 29, 2007 Posted December 29, 2007 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
maniac Posted December 29, 2007 Posted December 29, 2007 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.
FN-GM Posted December 29, 2007 Posted December 29, 2007 I am running it on a account with full admin rights, so if i change the location of the shortcut that might be it? Z
maniac Posted December 29, 2007 Posted December 29, 2007 Try changing it to the C:\ root to test it, and try a different location to copy from, or try it just copying a file locally until you find the bit that causing you problems. Mike.
FN-GM Posted December 29, 2007 Posted December 29, 2007 Still getting it put when i run to it C:\OWA.lnk I get the following: Its a link to a website does that matter? Z
maniac Posted December 29, 2007 Posted December 29, 2007 Are you running the copy command from a command prompt window or by typing it in the 'run' box. Normally I'd expect an error in the command line box, not a windows error like you're getting. Mike.
FN-GM Posted December 29, 2007 Posted December 29, 2007 i am running the comman in a .bat script But when i get the error message i was typing the below in the run box C:\OWA.lnk
maniac Posted December 29, 2007 Posted December 29, 2007 Ahh, just thought. if it's a web link, then the extension is .url not .lnk. Mike.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now