Informazioni tecniche per il settore informatico dal 2007.
mercoledì 6 febbraio 2019
Eseguire un comando Powershell da file batch e catturare l'output
FOR /F "tokens=* USEBACKQ" %%F IN (`powershell.exe -noninteractive -command [datetime]::now.tostring^('yyyy-MM-dd_HH-mm-ss'^)`) DO (
SET $RetValue=%%F
)
Nessun commento:
Posta un commento