From 9a62fa66376bc941575aa3a5951cfef3909c5d7d Mon Sep 17 00:00:00 2001 From: Makoto Emura Date: Mon, 13 Nov 2023 12:39:24 -0800 Subject: [PATCH] username --- en/macro/tutorial/tutorial_username.md | 3 ++- ja/macro/tutorial/tutorial_username.md | 3 ++- zh-cn/macro/tutorial/tutorial_username.md | 3 ++- zh-tw/macro/tutorial/tutorial_username.md | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/en/macro/tutorial/tutorial_username.md b/en/macro/tutorial/tutorial_username.md index a8084a12b..3ae2a7f6b 100644 --- a/en/macro/tutorial/tutorial_username.md +++ b/en/macro/tutorial/tutorial_username.md @@ -8,9 +8,10 @@ The following example demonstrates how to get the name of a current computer use ### \[JavaScript (JScript)\] +``` WshNetwork = new ActiveXObject( "WScript.Network" ); - alert( "User Name = " + WshNetwork.UserName ); +``` ### \[VBScript\] diff --git a/ja/macro/tutorial/tutorial_username.md b/ja/macro/tutorial/tutorial_username.md index a37c64630..791e1d7d1 100644 --- a/ja/macro/tutorial/tutorial_username.md +++ b/ja/macro/tutorial/tutorial_username.md @@ -8,9 +8,10 @@ ### \[JavaScript (JScript)\] +``` WshNetwork = new ActiveXObject( "WScript.Network" ); - alert( "User Name = " + WshNetwork.UserName ); +``` ### \[VBScript\] diff --git a/zh-cn/macro/tutorial/tutorial_username.md b/zh-cn/macro/tutorial/tutorial_username.md index a40d4adcb..652a80eed 100644 --- a/zh-cn/macro/tutorial/tutorial_username.md +++ b/zh-cn/macro/tutorial/tutorial_username.md @@ -8,9 +8,10 @@ ### \[JavaScript (JScript)\] +``` WshNetwork = new ActiveXObject( "WScript.Network" ); - alert( "User Name = " + WshNetwork.UserName ); +``` ### \[VBScript\] diff --git a/zh-tw/macro/tutorial/tutorial_username.md b/zh-tw/macro/tutorial/tutorial_username.md index daa99dbb3..f3f6d3488 100644 --- a/zh-tw/macro/tutorial/tutorial_username.md +++ b/zh-tw/macro/tutorial/tutorial_username.md @@ -8,9 +8,10 @@ ### \[JavaScript (JScript)\] +``` WshNetwork = new ActiveXObject( "WScript.Network" ); - alert( "User Name = " + WshNetwork.UserName ); +``` ### \[VBScript\]