Thread Rating:
  • 321 Vote(s) - 2.79 Average
  • 1
  • 2
  • 3
  • 4
  • 5
マシン名を取得する
02-17-2014, 11:12 AM,
#1
マシン名を取得する
現在アプレットが実行されているPCのマシン名を取得するにはどうすればよいのでしょうか。
02-17-2014, 12:36 PM, (This post was last modified: 02-17-2014, 12:37 PM by umemura.)
#2
RE: マシン名を取得する
環境情報の "COMPUTERNAME" が、マシン名にあたりそうです。

clone-host-environment を使うと、現在のホスト環境情報の一覧を取得できます。

Code:
{value {get-from-host-environment-if-exists "COMPUTERNAME"}}

{def env = {clone-host-environment}}
{def tbl = {Table columns = 2}}
{for k in {env.keys-to-Iterator} do
{tbl.add k}
{tbl.add env[k]}
}
{value tbl}
08-19-2014, 04:23 PM,
#3
RE: マシン名を取得する
「選択が解除されたら選択をしなおす」という方法なら何とか実装できそうです。
soha

Forum Jump:


Users browsing this thread:
2 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('1039')