Jump to content

Greenket

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Greenket

  1. Hey Jos , ive already done this in the UDF: $objEmail.Subject = $s_Subject & @ComputerName and $objEmail.Textbody = $as_Body & @CRLF & @UserName This adds always at the end of the message / subject the computername and username. But thanks for your answer I think that might work too.
  2. Hey All , its all working fine for me but can somebody tell me at the part of : $Body = "" Is there a way i can say it needs to send the computername or the username (like @username ) or ( @computername) of the user in the email?
  3. Hey Guys, I have this code: Now i want to say if desktop hight and widht is not 1364 x 768 that it will go to the part to check 1024 x 768. How can i do that? $deskhig = @DesktopHeight $deskwidt = @DesktopWidth If $deskhig = 768 and $deskwidt = 1364 Then MsgBox(0, "Supported", $deskwidt & "x" & $deskhig & " " & @UserName) Run ("C:\Users\Desktop\Micollab Status Toevoeger 1364 x 768.exe") Else MsgBox (0, "Not Supported", "Not supported") EndIf If $deskhig = 768 and $deskwidt = 1024 Then MsgBox(0, "Supported", $deskwidt & "x" & $deskhig & " " & @UserName) Run ("C:\Users\Desktop\Micollab Status Toevoeger 1024 x 768.exe") Else MsgBox (0, "Not Supported", "Not supported") EndIf If $deskhig = 1080 and $deskwidt = 1920 Then MsgBox(0, "Supported", $deskwidt & "x" & $deskhig & " " & @UserName) Run ("C:\Users\Desktop\Micollab Status Toevoeger 1920 x 1080.exe") Else MsgBox (0, "Not Supported", "Not supported") EndIf Exit
×
×
  • Create New...