Browsing For Local SMS Log Files And Reading Them

 

These Vbs scripts will allow you to browse for an SMS Client log file and then open the file with Notepad or the SMS log file reader.

 

Specify To Open File With Notepad

 

Set objDialog = CreateObject("UserAccounts.CommonDialog")

objDialog.Filter = "All Files|*.Log"

objDialog.InitialDir = "C:\WINDOWS\system32\CCM\Logs"

intResult = objDialog.ShowOpen

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.Run "Notepad.exe " & Chr(34) & objDialog.FileName & Chr(34)

 

Open Files With SMS Trace

 

Note: If you have the SMS Trace reader (Trace32.Exe) set to open all log files there is no need to specify the application to use to open the selected log files. This is because log files are already associated with Trace32.

 

Set objDialog = CreateObject("UserAccounts.CommonDialog")

objDialog.Filter = "All Files|*.Log"

objDialog.InitialDir = "C:\WINDOWS\system32\CCM\Logs"

intResult = objDialog.ShowOpen

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.Run objDialog.FileName

 

Published Sunday, May 27, 2007 8:30 AM by dhite
Filed under:

Comments

No Comments