Jump to content

Recommended Posts

Posted
Whats the best way of has anyone got a script that I can run at logon to copy a folder from the server to the PC's but check to see if it exists first so it does not try to copy it every time it logs on.
Posted

This little VBS script will do it. I use it for one off distribution of files sometimes.

 

dim filesys
set filesys=CreateObject("Scripting.FileSystemObject")

If (FileSys.FolderExists("c:\DESTINATIONFOLDER")) Then WScript.Quit 

filesys.CopyFolder "\\SERVER\SHARE\FOLDER", "c:\DESTINATIONFOLDER"

 

Mike.

Posted

if it's only a few files this might do it...

rem copies files for Multimedia Sound to work

if not exist "c:\windows\CSMSOUND.INI" copy "\\fp4\shapps\MultimediaSound\windows\CSMSOUND.INI" c:\windows\

if not exist "c:\windows\system\CSMSND.DLL" copy "\\fp4\shapps\MultimediaSound\windows\system\CSMSND.DLL" c:\windows\system

if not exist "c:\windows\system\MCI.VBX" copy "\\fp4\shapps\MultimediaSound\windows\system\MCI.VBX" c:\windows\system

Posted
This little VBS script will do it. I use it for one off distribution of files sometimes.

 

dim filesys
set filesys=CreateObject("Scripting.FileSystemObject")

If (FileSys.FolderExists("c:\DESTINATIONFOLDER")) Then WScript.Quit 

filesys.CopyFolder "\\SERVER\SHARE\FOLDER", "c:\DESTINATIONFOLDER"

 

Mike.

 

That should do it, its for some software that won't run correctly (due to permissions etc) from a share over the network (and is very slow when a full class wants to use it) so tried it locally and its fine so just need to copy the folder locally and then put the icon on the global desktop. Speaking of icon and desktop how would I copy a shortcut to the all users desktop if I needed to as staff don't get the global desktop.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...