simply i want to use a batch file to read from text file and then pass the string to vbscript the vbs will display the text information.
i am able to read but unable to display
here is the batch code
Option Explicit
Dim InputFile
Dim FSO, oFile
Dim strData
InputFile = "C:\Users\admin\Desktop\output.txt"
Set FSO = CreateObject("Scripting.FileSystemObject")
Set oFile = FSO.OpenTextFile(InputFile)
strData = oFile.ReadAll
SET AvayaContent1=strData
START c:\windows\system32\wscript.exe c:\users\admin\Desktop\ScreenPopMessage.vbs
and here is the vbs code
Set wshShell = CreateObject( "WScript.Shell" )
MemID = wshShell.ExpandEnvironmentStrings( "%AvayaContent1%" )
WScript.Echo MemID
any idea is welcomed :)