今度は #PowerShellから #Excelを操作してみます。 基本は一緒!各言語でお作法が違うだけ! その前に、 PowerShell は「実行ポリシー」というのがあります。 その他にもわからない単語などは Google 先生にお尋ねください← では、ファイル名を指定して実行から ...
Windows PowerShell(以降、PowerShell)は、Windows環境で利用できる対話型シェル、およびスクリプティング実行環境です。WSHとよく似ていますが、以下のような点が強化されています。 「コマンドレット」と呼ばれる高機能なコマンドを提供 ドライバ経由で ...
この処理は、日々の業務で頻繁に発生する「照合+追記」作業を自動化するのに非常に有効です。PowerShellとPythonの両方で実装することで、環境や好みに応じて選択できます。 今後は以下のような拡張も可能です: ファイル一覧の管理はCSVが便利ですが ...
PowerShellを使っていると、数学的関数に力不足を感じることがある。ルートなどの関数は、System.Mathクラスを使うのだが、PowerShell(.NET 7.x)で利用できる関数は48個しかなく、そのうちの1つは2つの数値が等しいことを調べる「equal」関数である(これはMath ...
Sometimes you need to scan some files for a piece of data like a string, phrase or some number, and one of those files just happens to be an Excel spreadsheet. You could open up the file, launch the ...
So far in this series, we have looked at querying systems using WMI to pull the drive space and then spent some time looking at sending that data to a SQL server database where it can be saved for ...
PowerShell script to generate a SQL CREATE TABLE statement from Excel files, with automatic column type detection and header handling. Convert Excel (.xlsx) files to pipe-delimited TXT files, ...