Login | |
|
 |
RE: Copy files to machines from Active directory - 2/18/2007 6:25:56 PM
|
|
 |
|
| |
DiGiTAL.SkReAM
Posts: 1194
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
|
Please post any code that you already have so that we can help get you pointed in the right direction.
< Message edited by DiGiTAL.SkReAM -- 2/18/2007 6:27:43 PM >
_____________________________
"Would you like to touch my monkey?" - Dieter (Mike Meyers) "It is better to die like a tiger, than to live like a pussy." -Master Wong, from Balls of Fury
|
|
| |
|
|
|
 |
RE: Copy files to machines from Active directory - 2/19/2007 8:09:37 AM
|
|
 |
|
| |
Parabellum
Posts: 222
Score: 0
Joined: 11/12/2006
From: UK
Status: offline
|
well your existing code would only copy the files locally... if you want to copy them to a remote machine you could use a hidden admin share... eg.. objFSO.CopyFile "\\Servername\folder\filename" , strComputer & "\D$:\Copy\", OverwriteExisting but that depends if your machiens have admin shares enabled... another option is to speicify a startup script via group policy that is applied to the OU in question then you would only need this code.. Const OverwriteExisting = TRUE Set objFSO = CreateObject("Scripting.FileSystemObject") If Not objFSO.FileExists("D:\Copy\filename") objFSO.CopyFile "\\Servername\folder\filename" , "D:\Copy\", OverwriteExisting End If there a re a few options... depending on when and how you want the files to be coppied.. and what theya re for
|
|
| |
|
|
|
 |
RE: Copy files to machines from Active directory - 2/19/2007 9:31:37 AM
|
|
 |
|
| |
Parabellum
Posts: 222
Score: 0
Joined: 11/12/2006
From: UK
Status: offline
|
thanks..my bad.. well spotted btw :)
|
|
| |
|
|
|
 |
RE: Copy files to machines from Active directory - 2/19/2007 6:41:17 PM
|
|
 |
|
| |
Parabellum
Posts: 222
Score: 0
Joined: 11/12/2006
From: UK
Status: offline
|
take a look at dm_4ever's connectivity monitor --> http://www.visualbasicscript.com/m_42535/tm.htm specicifcly the reachable function. That should provide you with what you need...
|
|
| |
|
|
|
|
|