Prev: BUY FAKE PASSPORTS OF CANADA,FAKE CANADIAN PASSPORTS FOR SALE! FAK
Next: Specify open file with Excel 2007
From: Sear S Sear on 19 May 2010 08:06 Hi, I have trouble putting a VB script together to gather 2 different log files located on c:\root of each workstation Thanks for your help! Sam
From: Tom Lavedas on 19 May 2010 09:18 On May 19, 8:06 am, Sear S <Sear S...(a)discussions.microsoft.com> wrote: > Hi, > > I have trouble putting a VB script together to gather 2 different log files > located on c:\root of each workstation > > Thanks for your help! > > Sam Show us what you have and describe the problems in some detail - include OS specifics and any error messages encountered. Few of us can/are willing to do all the work for you. Plus, that's almost impossible, anyway, without more knowledge of your specific working environment, security policies, etc. _____________________ Tom Lavedas
From: Sear S on 19 May 2010 10:45 Hi Tom, I am not very good with VB script that's why I just wondered if there was a script out there corresponding my needs... OS: Windows XP Pro Script function: Should be to gather some workstation log files located right on C root...we are talking maybe about 10 workstations max. I know it's too much to ask...but If there is anything out there then let me know Thanks guys Sam "Sear S" wrote: > Hi, > > I have trouble putting a VB script together to gather 2 different log files > located on c:\root of each workstation > > > Thanks for your help! > > Sam >
From: Tom Lavedas on 19 May 2010 13:18 On May 19, 10:45 am, Sear S <Se...(a)discussions.microsoft.com> wrote: > Hi Tom, > > I am not very good with VB script that's why I just wondered if there was a > script out there corresponding my needs... > OS: Windows XP Pro > Script function: Should be to gather some workstation log files located > right on C root...we are talking maybe about 10 workstations max. > I know it's too much to ask...but If there is anything out there then let me > know > > Thanks guys > > Sam > > "Sear S" wrote: > > Hi, > > > I have trouble putting a VB script together to gather 2 different log files > > located on c:\root of each workstation > > > Thanks for your help! > > > Sam Assuming you have domain admin rights on the machines in question, they can be accessed through their C$ (D$, etc) shares (unless they've been disabled), something like this ... sServerNames = "server1,server2,server3,etc" sLogName = "ourlog.log" sDestination = "C:\Logs\" with createobject("scripting.filesystemobject") for each server in split(sServerNames, ",") sLogPath = "\\" & server & "\C$\" & sLogName if .fileExists(sLogPath) then .copyfile slogpath, sDestination & server & sLogName end if next end with This is "air code" to demonstrate the approach. I have not tested it, so I may have missed a fine point of syntax or such, but the general approach is valid. See the WSH down-loadable documentation and Script Center samples for more information on how to solve your problem: WSH 5.6 documentation download (URL all one line) http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en TechNet Script Center Sample Scripts (URL all one line) http://www.microsoft.com/downloads/details.aspx?FamilyID=b4cb2678-dafb-4e30-b2da-b8814fe2da5a _____________________ Tom Lavedas
From: Sear S on 25 May 2010 13:14 Hi Tom, Thanks, however 2 questions about sdestination and slogpath Is Sdestination as target machine (s) destination path? Is sLogname path the path from where the log file that needs to be copied from? Thanks Sam "Sear S" wrote: > Hi, > > I have trouble putting a VB script together to gather 2 different log files > located on c:\root of each workstation > > > Thanks for your help! > > Sam >
|
Next
|
Last
Pages: 1 2 3 4 Prev: BUY FAKE PASSPORTS OF CANADA,FAKE CANADIAN PASSPORTS FOR SALE! FAK Next: Specify open file with Excel 2007 |