I am use this script
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFile = oFSO.OpenTextFile("Test.txt")
While oFile.AtEndOfStream <> True
strLine = oFile.ReadLine
If InStr(strLine, "REV") > 0 Then
arrParts = Split(strLine, "|")
End If
Wend
rem WScript.Echo arrParts(7)
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.AppActivate ("notepad")
WshShell.sendkeys arrParts(6)
WshShell.sendkeys ".txt"
the output I am getting is REVNPW>TXT
I would like to why i get a > when it should be a .
if rem out WshShell.sendkeys arrParts(6)
I get .txt thanks for an help you can give me on what i am doing wrong
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFile = oFSO.OpenTextFile("Test.txt")
While oFile.AtEndOfStream <> True
strLine = oFile.ReadLine
If InStr(strLine, "REV") > 0 Then
arrParts = Split(strLine, "|")
End If
Wend
rem WScript.Echo arrParts(7)
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.AppActivate ("notepad")
WshShell.sendkeys arrParts(6)
WshShell.sendkeys ".txt"
the output I am getting is REVNPW>TXT
I would like to why i get a > when it should be a .
if rem out WshShell.sendkeys arrParts(6)
I get .txt thanks for an help you can give me on what i am doing wrong