Andreea Posted January 17, 2014 Posted January 17, 2014 O comanda simpla de PowerShell prin care verificam daca exista un fisier anume, apoi il stergem. 1. Deschideti PowerShell: a) Start -> Programs -> Accesories -> Windows PowerShell sau Start -> Search Programs and Files -> Scrieti “PowerShell” -> Enter 2. Copiati comenzile de mai jos. 1). $NumeFisier = "C:\fisier_test.txt"2). IF (Test-Path $NumeFisier){3). Remove-Item $NumeFisier4). }
Recommended Posts