This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Private fs | |
Private conn | |
Private excelApp | |
Private excelBook | |
Private excelSheet | |
'出力シートの準備 | |
Private Sub openSheet(iSheet, sqlFile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Private fs | |
Private conn | |
'結果出力 | |
Private Sub writeResult(rs, sqlFile) | |
'上書きか、追加書き込みか | |
Dim mode: mode = "2" '2:ForWriting | |
If WScript.Arguments.Count > 2 Then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[System.Reflection.Assembly]::LoadWithPartialName("System.Data") | |
$cs = "Provider=MSDAORA;User ID=xxxxx;Password=yyyyy;Data Source=zzzzz" | |
$oraCon = New-Object System.Data.OleDb.OleDbConnection($cs) | |
$oraCmd = New-Object System.Data.OleDb.OleDbCommand | |
$oraCon.Open() | |
$oraCmd.Connection = $oraCon | |
$oraCmd.CommandText = "SELECT * FROM wwwwww" | |
$oraReader = $oraCmd.ExecuteReader() | |
while ($oraReader.Read()) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
'IE起動 | |
Dim ie: Set ie = CreateObject("InternetExplorer.Application") | |
ie.Visible = True | |
ie.Toolbar = True | |
ie.MenuBar = True | |
ie.AddressBar = True | |
ie.StatusBar = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Win32::OLE; | |
my $ie = Win32::OLE->new('InternetExplorer.Application'); | |
$ie->{Visible} = 1; | |
$ie->{ToolBar} = 1; | |
$ie->{MenuBar} = 1; | |
$ie->{AddressBar} = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ie = new COM('InternetExplorer.Application'); | |
$ie->Visible = true; | |
$ie->ToolBar = true; | |
$ie->MenuBar = true; | |
$ie->AddressBar = true; | |
$ie->StatusBar = true; | |
#ログオン画面 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'win32ole' | |
ie = WIN32OLE.new('InternetExplorer.Application') | |
ie.Visible = true | |
ie.Toolbar = true | |
ie.MenuBar = true | |
ie.AddressBar = true | |
ie.StatusBar = true | |
#ログオン画面 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: Shift_JIS | |
import win32api, win32con, win32com, win32com.client, os, time, sys | |
ie = win32com.client.Dispatch("InternetExplorer.Application") | |
ie.Visible = True | |
ie.ToolBar = True | |
ie.MenuBar = True | |
ie.AddressBar = True | |
ie.StatusBar = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ie = WScript.CreateObject("InternetExplorer.Application"); | |
ie.Visible = true; | |
ie.Toolbar = true; | |
ie.MenuBar = true; | |
ie.AddressBar = true; | |
ie.StatusBar = true; | |
//ログオン画面 | |
ie.Navigate("http://192.168.1.1/zzzz.asp"); | |
while (ie.Busy || ie.readystate != 4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ie = New-Object -ComObject internetexplorer.application | |
$ie.Visible = $true | |
$ie.Toolbar = $true | |
$ie.MenuBar = $true | |
$ie.AddressBar = $true | |
$ie.StatusBar = $true | |
#ログオン画面 | |
$ie.Navigate('http://192.168.1.1/zzzz.asp') | |
while($ie.busy -or $ie.readystate -ne 4) |