I'm creating an HTA for all users that needs to delete a file based on their username.
For example, when a user opens the HTA, selects the Radio button and they clicks the "Run" button, it needs to delete \\server\share\%username%.txt
The Sub that I'm working on is (I just put the MsgBox there to verify everything works);
Sub TestSub
If RadioOption(0).Checked Then
MsgBox "You Checked the The First One"
ElseIf RadioOption(1).Checked Then
MsgBox "You Checked the The Second One"
ElseIf RadioOption(2).Checked Then
MsgBox "You Checked the The Third One"
End If
End Sub
For example, when a user opens the HTA, selects the Radio button and they clicks the "Run" button, it needs to delete \\server\share\%username%.txt
The Sub that I'm working on is (I just put the MsgBox there to verify everything works);
Sub TestSub
If RadioOption(0).Checked Then
MsgBox "You Checked the The First One"
ElseIf RadioOption(1).Checked Then
MsgBox "You Checked the The Second One"
ElseIf RadioOption(2).Checked Then
MsgBox "You Checked the The Third One"
End If
End Sub