0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

vbsの作法 その85

Posted at

概要

vbsの作法、調べてみた。
練習問題やってみた。

練習問題

IE11のユーザーエージェントを取得せよ。

サンプルコード

Dim objIE
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Width = 500
objIE.Height = 400
objIE.Visible = True
objIE.Navigate "about:blank"
set ow = objIE.Document.parentWindow
WScript.Echo ow.navigator.userAgent
objIE.Quit
Set objIE = Nothing


実行結果


Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; Tablet PC 2.0; rv:11.0) like Gecko

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?