Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Warn Warning Dialog Display Ctrl Alt Delete Del Login
Basically we are doing remote installs and configurations on machine and require the users to be logged out while it is happening, but when the user gets to their machine in the morning and something is working on the machine they have no way of knowing and may log in and distrupt the process.
I'm not looking to prevent the user from logging in I just want a message box up so they know something is happening.
Here's an example of how to run it:
IntControl(1002,0,0,0,0) ; Do not show icon IntControl(12,5,0,0,0) ; Terminate silently Title = "Upgrade In Progress" Msg = "Please do not attempt to logon":@CRLF:@CRLF:"This message will close when the upgrade is complete" Count = 0 While 1 Exe = "instwarn.exe" If !AppExist(Exe,0,0) Then Run(Exe,'"':Msg:'" "':Title:'"') Count = Count + 1 If Count==3 Then Break ; Replace with your custom check EndWhile
IntControl(1002,0,0,0,0) ; Do not show icon IntControl(12,5,0,0,0) ; Terminate silently VS = StrFill(@CRLF,15) HL = StrFill(" ",20) HR = StrFill(" ",35) Title = "Upgrade In Progress" Msg = VS:HL:"Please do not attempt to logon":HR:@CRLF:@CRLF:HL Msg = Msg:"This message will close when the upgrade is complete":HR:VS Count = 0 While 1 Exe = "instwarn.exe" If !AppExist(Exe,0,0) Then Run(Exe,'"':Msg:'" "':Title:'"') Count = Count + 1 If Count==3 Then Break ; Replace with your custom check EndWhile
Article ID: W17425
File Created: 2019:08:14:09:21:40
Last Updated: 2019:08:14:09:21:40