Jump to content
Facebook Twitter Youtube

Cum să ştergi un fişier în PowerShell


D. Argon
 Share

Recommended Posts

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
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

WHO WE ARE?

CsBlackDevil Community [www.csblackdevil.com], a virtual world from May 1, 2012, which continues to grow in the gaming world. CSBD has over 70k members in continuous expansion, coming from different parts of the world.

 

 

Important Links