vbscript – Date
**FUNCTION:** `Date()`
**Description**
Retourne la date courante (sans l’heure).
**Syntax**
`Date()`
**Paramètres**
– *(aucun)*
**Exemples**
« `vb
WScript.Echo Date
« `
**Output :** `date courante`
**FUNCTION:** `Date()`
**Description**
Retourne la date courante (sans l’heure).
**Syntax**
`Date()`
**Paramètres**
– *(aucun)*
**Exemples**
« `vb
WScript.Echo Date
« `
**Output :** `date courante`
WSH/FSO – Fichiers
STATEMENT: ‘ Implemented in version 1.0 ‘ The ‘ statement allows you to insert comments into your code. Code: <% ‘ This is one of two ways to comment in VBScript %> <% Rem This is the other way %>
OPERATOR: ^ Implemented in version 1.0 ^ The ^ operator, which is sometimes called « hat », is used to raise a number to a power. Code: <% power = 2^2 %> Output: 4 Code: <% power = 4.819^1.753 %> Output: 15.7479305850686
FUNCTION: Asc() Implemented in version 1.0 Asc(String) The Asc function returns the ANSI character code value for the first character in a string. In these two examples, note that the ANSI value is returned only for the « a ». Code: <% =Asc(« abcde fghij klmno pqrst uvwxyz ») %> Output: 97 Code: <% =Asc(« a ») %> Output: 97
OPERATOR: <> Implemented in version 1.0 <> The <> operator is called the not equal or inequality operator. Code: <% If 128 <> 777 Then Response.Write(« Not equal ») End If %> Output: Not equal
WSH – WshShell