Contenidos

Proceso emisor
1 2 3 |
# Proceso emisor $message = "Hola desde el proceso emisor" Set-Content -Path "mensaje.txt" -Value $message |
Proceso receptor
1 2 3 4 5 6 7 8 9 10 |
# Proceso receptor while ($true) { $message = Get-Content -Path "mensaje.txt" if ($message -ne $null) { Write-Host "Mensaje recibido: $message" Remove-Item -Path "mensaje.txt" break } Start-Sleep -Milliseconds 100 } |