Sign in to follow this  
Followers 0
Kkweit

Diagnostic script

3 posts in this topic

Hi,

I'm trying to do a script which give a statement of the machine.

I guess there is no need to tell that i am a novice with AutoIt.

the information that i want to display are:

- The Date of the day

- The Ip adress of the machine

- The Dns, the gateway

- the result of a ping

and some other stuff that will have in mind when i'll succeed in doing those things

Here is what i wrote:

$yyyymd = @MDAY & "/" & @MON & "/" & @YEAR

$ping = Ping("google.com", 1200)

MsgBox(64,"Resultat du test permettant d'etablir un diagnostic de votre machine" & @CRLF & _,

"Date : ", $yyyymd & @CRLF & _,

"Adresse IP de la machine : " & @IPAddress1 & @CRLF & _,

"Resultat du ping : ", $ping & @CRLF & _)

here is the error message that i get:

error: Missing separator charater after keyword

and it's for the line openning the "MsgBox"

Is there anybody who can help me ?

Share this post


Link to post
Share on other sites



Hi,

you did some wrong string concatenation and a wrong MsgBox call.

$yyyymd = @MDAY & "/" & @MON & "/" & @YEAR
$ping = Ping("google.com", 1200)
MsgBox(64,"Resultat du test permettant d'etablir un diagnostic de votre machine", _ 
"Date : " & $yyyymd & @CRLF & _ 
"Adresse IP de la machine : " & @IPAddress1 & @CRLF & _ 
"Resultat du ping : " & $ping & " ms" & @CRLF)

Tip: There is a helpfile included in every AutoIT installation. :(

;-))

Stefan

Share this post


Link to post
Share on other sites

it works ! :(

Thank you !

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0