Jump to content

Recommended Posts

Posted (edited)

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

b ). Start -> Search Programs and Files -> Scrieti “PowerShell” -> Enter

2. Copiati comenzile de mai jos.

$NumeFisier = "C:\fisier_test.txt" IF (Test-Path $NumeFisier){ Remove-Item $NumeFisier }
Edited by D. Argon
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.