Bonsoir, je veux créer une application en VB.NET pour mon serveur minecraft. Je rencontre une problème, je veux qu'on puisse se connecter au serveur via l'application. Mais le problème étant que quand je crée un fichier login.txt (pour faire une case se souvenir de moi), et que je ne coche pas la case, il m'indique une erreur (que je comprends) : il n'existe pas de login.txt, nous ne pouvons pas le supprimer.
C'est la que je fait appel à vous. Je voudrais faire
If checkBox1.Checked = True Then
...
ElseIf CheckBox1.Checked = False Then
If ....txt existe Then kill("....txt")
Process.Start...(lance minecrafT)
ElseIf ....txt n'existe pas Then
Process.Start ... (lance minecraft)
EndIf
EndIf
End
C'est la que je fait appel à vous. Je voudrais faire
If checkBox1.Checked = True Then
...
ElseIf CheckBox1.Checked = False Then
If ....txt existe Then kill("....txt")
Process.Start...(lance minecrafT)
ElseIf ....txt n'existe pas Then
Process.Start ... (lance minecraft)
EndIf
EndIf
End