A script is just a collection of commands saved into a text file (using the special .ps1 extension) that PowerShell understands and executes in sequence to perform different actions. In this post, we ...
他のPowershellスクリプト(.ps1)を参照する方法。生成AIに聞いても、一発で答えてくれないので記載。例えばこの記事内のメイン部分(「# C# コード 部分」から「# 実行(画像1を探し、その範囲内で画像2をクリック)」の直前まで)を「opencv.ps1」として保存 ...
Powershellスクリプトの作成方法の一例を念のため書きます。 各記事(例:機内モード解除(Powershell+UIAutomation))のコード部分をコピーし、メモ帳に貼り付けてください。 名前を付けて保存する際にエンコード形式を「UTF-8 (BOM付き)」にし、拡張子を「.ps1 ...
PowerShell is not just an application, it is a scripting language built on .Net CLR that automates IT tasks. It has backward compatibility with CMD and can automate simple or complex tasks. Because of ...
In my previous post, I showed you how to create a clickable button in Excel. That button displayed a simple message box. Now, I want to show you how to use the button to kick off a PowerShell script.
前回までに作成した「netcat.ps1」では、「curl.exe」と「Microsoft Edge」のヘッドレスモードを使ってWebページのHTMLを取得できるようにした。 netcat.ps1の注目ポイントは、Webページを取得する方法としてMicrosoft Edgeを使ったことで、JavaScriptを使ってコンテンツを ...