24 lines
1.1 KiB
PowerShell
24 lines
1.1 KiB
PowerShell
$ErrorActionPreference = 'Continue'
|
|
Write-Host '=== E:\wwwroot\admin ==='
|
|
Get-ChildItem E:\wwwroot\admin -ErrorAction SilentlyContinue | Select-Object Name,Mode | Format-Table -AutoSize
|
|
Write-Host '=== E:\wwwroot\agent ==='
|
|
Get-ChildItem E:\wwwroot\agent -ErrorAction SilentlyContinue | Select-Object -First 15 Name
|
|
Write-Host '=== tools bins ==='
|
|
@(
|
|
'C:\yutongda\tools\jdk8\bin\java.exe',
|
|
'C:\Program Files\nodejs\node.exe',
|
|
'C:\yutongda\tools\maven\bin\mvn.cmd',
|
|
'C:\tools\apache-maven-3.9.16\bin\mvn.cmd'
|
|
) | ForEach-Object { Write-Host "$_ = $(Test-Path $_)" }
|
|
Get-ChildItem C:\yutongda\tools -Directory | Select-Object Name
|
|
where.exe node 2>$null
|
|
where.exe npm 2>$null
|
|
Get-ChildItem C:\yutongda\tools -Recurse -Filter 'mvn.cmd' -ErrorAction SilentlyContinue | Select-Object -First 3 FullName
|
|
Get-ChildItem 'C:\Program Files' -Filter 'nodejs' -Directory -ErrorAction SilentlyContinue | Select-Object FullName
|
|
# env key names only
|
|
Write-Host '=== env keys ==='
|
|
Get-Content E:\wwwroot\.env | ForEach-Object {
|
|
if ($_ -match '^\s*#' -or $_ -match '^\s*$') { return }
|
|
if ($_ -match '^([^=]+)=') { $matches[1] }
|
|
} | Select-Object -First 40
|