Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Monitor Watch File Exist Systray System Tray IntControl 1007 News
filename = 'D:\Temp\news.txt' IntControl(1007, 1, 1, '', '') ; Load scipt into systray While @TRUE ; Loop forever found = FileExist( filename ) If found ; File is found data = FileGet( filename ) ; Read contents of file Message( 'Contents of file', data ) ; Display contents of file FileDelete( filename ) ; Delete file EndIf TimeDelay(1) clickstate = IntControl (1007, 0, 0, 0, 0) ;Check if user right clicks on icon if so then exit If clickstate == 2 IntControl (1007, 2, 0, 0, 0) ; Remove currently-running script from the system tray Break EndIf EndWhile Exit
Article ID: W18298
Filename: Watch for File from Systray.txt
File Created: 2009:12:03:10:33:08
Last Updated: 2009:12:03:10:33:08