使用powershell构建gui界面

使用powershell构建gui界面:

参考:

https://blog.csdn.net/gjmjack/article/details/124032293

c 复制代码
# Create a new button instance
 
$button1 = New-Object System.Windows.Forms.Button;
 
# Set button property
 
$button1.Location = New-Object System.Drawing.Point(257, 150);
$button1.Name = "button1";
$button1.Size = New-Object System.Drawing.Size(284, 103);
$button1.TabIndex = 0;
$button1.Text = "工作使我快乐";
$button1.UseVisualStyleBackColor = $true;

无法运行.ps1脚本(powershell脚本)处理办法:

参考:

https://blog.csdn.net/gao_zhennan/article/details/131719371

c 复制代码
Get-ExecutionPolicy -List
Set-ExecutionPolicy -ExecutionPolicy AllSigned CurrentUser
Get-ExecutionPolicy -List
相关推荐
墨雪遗痕13 天前
中文Windows系统下程序输出重定向乱码问题解决方案
rust·编码·powershell
粉色挖掘机14 天前
PowerShell批量处理文件名称/内容的修改
powershell
noravinsc15 天前
powershell 获取 用户及进程列表
windows·powershell
南岩亦凛汀16 天前
在Linux下使用wxWidgets进行跨平台GUI开发(三)
c++·跨平台·gui·开源框架·工程实战教程
南岩亦凛汀20 天前
使用wxWidgets进行跨平台GUI开发(附1)
跨平台·gui·开源框架·工程实战教程
南岩亦凛汀23 天前
在Linux下使用wxWidgets进行跨平台GUI开发(二)
跨平台·gui·开源框架
南岩亦凛汀1 个月前
在Linux下使用wxWidgets进行跨平台GUI开发
c++·跨平台·gui·开源框架·工程实战教程
struggle20251 个月前
LazyOwn RedTeam/APT 框架是第一个具有人工智能驱动的 C&C 的 RedTeam 框架
c语言·开发语言·python·html·powershell
Moshow郑锴1 个月前
Powershell : Transfer yesterday‘s EOD file to SMB folder
powershell
伊织code1 个月前
macOS 安装 PostgreSQL
数据库·macos·postgresql·gui·安装·客户端·psql