I am working on the following Script and could use a little help.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colMonitoredEvents = objWMIService.ExecNotificationQuery _
("SELECT * FROM __InstanceCreationEvent WITHIN 10 WHERE " _
& "Targetinstance ISA 'CIM_DirectoryContainsFile' AND " _
& "TargetInstance.GroupComponent= " _
& "'Win32_Directory.Name=""C:\\\\2300""'")
Do
Set FSO = CreateObject("Scripting.FileSystemObject")
Set objLatestEvent = colMonitoredEvents.NextEvent
strFilename = ObjLatestEvent.TargetInstance.PartComponent
WScript.Echo strFilename
Replace
strFilename,"\\PFINN-SECXP02\root\cimv2:CIM_DataFile.Name=","C:"
WScript.Echo strFilename
'strLocation = "C:\Moved"
'FSO.CopyFile strFilename strLocation
Loop

The purpose of this script is to monitor a specific directory for new
files. Once and new file appears i want to move it to another server.
This is just the monitoring portion of the script the problem is that
the variable strFilename is storing more then just he file name.

strFilename =
\\MachineName\root\cimv2:CIM_DataFile.Name="C:\\2300\\boss.txt"

I want to either remove everything but the file name or replace
everything but the filename with "C:\". I can not seem to find a way
to do this.