Scripts Thread, Script to copy folder and contents at startup in Coding and Web Development; Been presented with yet another woderful educational software package to install, should be ok as it's compatible with W98
20th March 2012, 07:43 PM #1
Script to copy folder and contents at startup
Been presented with yet another woderful educational software package to install, should be ok as it's compatible with W98
I've written a script to install it silently, but the program needs a folder and it's contents copied to the client pc.
My script makes a folder, installs the software, but copies the folder and not the contents. It's a batch file, simple xcopy with /s /e /d, works when I run it manually but not at startup. The paths must be right as the folder is copied but not the contents.
Any ideas where I might be going wrong?
IDG Tech News
20th March 2012, 07:45 PM #2
Robocopy will be better. It will create all the required folders for you and copy all the contents of the source. I have found xcopy to be hit and miss at times. Does your server share have permissions do domain computers can see the contents?
What client OS are you running?
robocopy "\\soruceserver\share" "C:\destination-folder" /MIR
Last edited by FN-GM; 20th March 2012 at 07:47 PM.
20th March 2012, 07:50 PM #3
Windows 7 and xp, I'll try robocopy, is it on server 2008 r2 or do I need to install it?
20th March 2012, 07:52 PM #4
The server wouldnt matter.
Its built into Windows 7 but not XP. You can extract a copy of robocopy.exe from the Windows XP Support tools. You can just stick robocopy.exe in a shared drive.
On your source share does the computer group "domain computers" have read rights?
20th March 2012, 07:56 PM #5
Yes, it's the software drive.
20th March 2012, 08:08 PM #6
ok no worries. Give robocopy a shot.
Last edited by FN-GM; 20th March 2012 at 08:15 PM.
Reason: Typo Corrected
20th March 2012, 08:11 PM #7
Originally Posted by FN-GM
20th March 2012, 08:14 PM #8
22nd March 2012, 10:42 AM #9
@chrbb how did you get on?
22nd March 2012, 06:10 PM #10
Right - checked my switches and I'd changed /s for something else. Put /s back on works like a dream.
Decided not to install at startup though, as the software has eight parts to it each needing a folder copying. So have written a script to do all the copying and installing, but am going to do it manually on each teacher laptop as I also have 2 other new programs to install, one of which needs the usb device plugged in whilst the software installs TBF though it does mean that I get to give staff laptops the once over!
Nice little job whilst running the creche in the IT suite during parent's evening next week.
Last Post: 29th January 2013, 11:16 AM
By ful56_uk in forum Scripts
Last Post: 7th April 2010, 11:08 AM
By cookie_monster in forum Windows
Last Post: 7th October 2009, 11:52 AM
By JPhillips173 in forum Scripts
Last Post: 17th April 2008, 12:25 PM
Last Post: 18th January 2008, 02:46 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)