8 Star 24 Fork 6

Rainto / Pycad

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
aconsole.ps1 855 Bytes
一键复制 编辑 原始数据 按行查看 历史
xsfhlzh 提交于 2019-12-22 23:12 . Initial commit
# 控制台程序路径
$key = Get-Item HKLM:\Software\Autodesk\Hardcopy
$arr = @()
foreach($value in $key.Property){
$arr += Get-Item HKLM:\Software\$value
}
$arr = $arr | sort
$_values = Get-ItemProperty $arr[$arr.Count - 1].PSPath
$MyConsole = $_values.Location + "\accoreconsole.exe"
# 设置进程启动信息
$psi= New-Object System.Diagnostics.ProcessStartInfo
$psi.FileName = $MyConsole
# 设置进程自动重定向输入
$psi.UseShellExecute = $false
$psi.RedirectStandardInput = $true
$process = New-Object System.Diagnostics.Process
$process.StartInfo = $psi
$null = $process.Start()
$process.StandardInput.WriteLine("netload")
$dir = Split-Path -Parent $MyInvocation.MyCommand.Definition
$process.StandardInput.WriteLine($dir + "\NFox.Pycad.Acad.dll")
while($true){
$process.StandardInput.WriteLine([Console]::ReadLine())
}
Python
1
https://gitee.com/rainto/Pycad.git
git@gitee.com:rainto/Pycad.git
rainto
Pycad
Pycad
master

搜索帮助