Category Archive: VBScript

Nov 20

Create alert in VBScript Monitor file share folder drop

rp_257745810_150_150.jpg

Create alert in VBScript Monitor file share folder drop. Script: SET oShell = CREATEOBJECT(“Wscript.Shell”) myCommand = “cmd.exe /c DIR /o-d /b \\serverName\D$\myfolder\” ‘myCommand = “cmd.exe /c Robocopy mydate= Replace(FormatDateTime(date),”/”,”_”) ‘mydate= “8_26_2011″ ‘MSGBOX(myCommand) ‘MSGBOX(mydate) SET oExec = oShell.Exec(myCommand) DO UNTIL oExec.StdOut.AtEndOfStream outputline = outputline &Chr(9)& oExec.StdOut.ReadLine& Chr(10) ‘MSGBOX(outputline) IF inStr(outputline,mydate)<>0 THEN outputline = “<Green>Log Folder “&mydate&” …

Continue reading »

Permanent link to this article: http://www.techxpress.in/create-alert-in-vbscript-monitor-file-share-folder-drop/

Bookmark this page