Jump to content
Facebook Twitter Youtube

Recommended Posts

Posted

PowerShell este un fel de "cmd"(zic asa ca sa inteleaga toti ce e ala cu toate ca trece pe langa command promt) in care se dau comenzi.

 

1.Deschideti Power Shell:

 

Start -> Programs -> Accesories -> Windows PowerShell

 

2.Acum adaugati aceasta comanda:

$NumeFisier = "C:\fisier_test.txt"IF (Test-Path $NumeFisier){Remove-Item $NumeFisier}

 

Inlocuiti "C:\fisier_test.txt" cu locatia catre un fisier.Acest script va verifica daca fisierul exista si il va sterge.

 

Am postat asta nu pentru programare(pt asta aveti sectiunea developpement),doar va arat alt mod de a sterge un fisier.

Guest
This topic is now closed to further replies.

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