質問編集履歴
11
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,12 +14,8 @@
|
|
14
14
|
|
15
15
|
{
|
16
16
|
|
17
|
-
v
|
17
|
+
ObjShell = new ActiveXObject("WScript.Shell");
|
18
18
|
|
19
|
-
var code;
|
20
|
-
|
21
|
-
objShell = new ActiveXObject("WScript.Shell");
|
22
|
-
|
23
|
-
uname =
|
19
|
+
uname = ObjShell.ExpandEnvironmentStrings("%USERNAME%");
|
24
20
|
|
25
21
|
}
|
10
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,6 +22,4 @@
|
|
22
22
|
|
23
23
|
uname = objShell.ExpandEnvironmentStrings("%USERNAME%");
|
24
24
|
|
25
|
-
USERNAME.value= uname.substr(2,8);
|
26
|
-
|
27
25
|
}
|
9
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,6 +22,6 @@
|
|
22
22
|
|
23
23
|
uname = objShell.ExpandEnvironmentStrings("%USERNAME%");
|
24
24
|
|
25
|
-
|
25
|
+
USERNAME.value= uname.substr(2,8);
|
26
26
|
|
27
27
|
}
|
8
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,13 +14,13 @@
|
|
14
14
|
|
15
15
|
{
|
16
16
|
|
17
|
-
var obj
|
17
|
+
var objShell;
|
18
18
|
|
19
19
|
var code;
|
20
20
|
|
21
|
-
obj
|
21
|
+
objShell = new ActiveXObject("WScript.Shell");
|
22
22
|
|
23
|
-
uname = obj
|
23
|
+
uname = objShell.ExpandEnvironmentStrings("%USERNAME%");
|
24
24
|
|
25
25
|
document.form1.USERNAME.value= uname.substr(2,8);
|
26
26
|
|
7
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,16 +14,14 @@
|
|
14
14
|
|
15
15
|
{
|
16
16
|
|
17
|
-
var objW
|
17
|
+
var objWShell;
|
18
18
|
|
19
19
|
var code;
|
20
20
|
|
21
|
-
objW
|
21
|
+
objWShell = new ActiveXObject("WScript.Shell");
|
22
22
|
|
23
|
-
|
23
|
+
uname = objWShell.ExpandEnvironmentStrings("%USERNAME%");
|
24
24
|
|
25
|
-
document.form1.S
|
25
|
+
document.form1.USERNAME.value= uname.substr(2,8);
|
26
|
-
|
27
|
-
loadCheckCode();
|
28
26
|
|
29
27
|
}
|
6
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
objWshShell = new ActiveXObject("WScript.Shell");
|
22
22
|
|
23
|
-
code = objWshShell.ExpandEnvironmentStrings("%USERNAME%")
|
23
|
+
code = objWshShell.ExpandEnvironmentStrings("%USERNAME%");
|
24
24
|
|
25
25
|
document.form1.SHAINCODE.value=code.substr(1,8);
|
26
26
|
|
5
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
4
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
var objWshShell;
|
18
18
|
|
19
|
-
var
|
19
|
+
var code;
|
20
20
|
|
21
21
|
objWshShell = new ActiveXObject("WScript.Shell");
|
22
22
|
|
3
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
objWshShell = new ActiveXObject("WScript.Shell");
|
22
22
|
|
23
|
-
code = objWshShell.ExpandEnviromentStrings("%USERNAME%") ;
|
23
|
+
code = objWshShell.ExpandEnvironmentStrings("%USERNAME%") ;
|
24
24
|
|
25
25
|
document.form1.SHAINCODE.value=code.substr(1,8);
|
26
26
|
|
2
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
下記の箇所がIEからChromeに変えたら動作しなくなってしまいました。
|
2
2
|
|
3
3
|
コマンドプロンプトで確認できるような%USERNAME%を取得したいです。
|
4
4
|
|
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,9 @@
|
|
4
4
|
|
5
5
|
ActiveXObjectがChromeだと動かないのは理解したのですが、代替えのものが見つからず困っております。
|
6
6
|
|
7
|
-
よろしくお願いします。
|
7
|
+
よろしくお願いいたします。
|
8
|
+
|
9
|
+
|
8
10
|
|
9
11
|
|
10
12
|
|