stergere director

Acest forum este dedicat intrebarilor de Windows API, folosing C/C++
Post Reply
User avatar
dumion
Membru
Membru
Posts: 74
Joined: 25 Jul 2007, 10:17

stergere director

Post by dumion » 23 May 2008, 08:28

Vreau sa sterg un director cu tot ce e in el. Functia RemoveDirectory nu sterge decat directoare goale. Ce pot folosi pentru asta?



User avatar
maximghe
Membru
Membru
Posts: 139
Joined: 10 Aug 2007, 23:54

Re: stergere director

Post by maximghe » 23 May 2008, 09:35

CODEXPERT.RO iti ofera solutia... :)
Arunca o privire la FAQ-uri, ponturi si jmekerii: Cum sterg, copii sau mut un folder?
Max

User avatar
dumion
Membru
Membru
Posts: 74
Joined: 25 Jul 2007, 10:17

Re: stergere director

Post by dumion » 23 May 2008, 13:04

Aha, mi-a scapat. Mersi de link.

User avatar
Marius Bancila
Fondator
Fondator
Posts: 2344
Joined: 11 Jul 2007, 11:45
Judet: Timiş
Location: Timisoara
Contact:

Re: stergere director

Post by Marius Bancila » 23 May 2008, 15:30

Vezi ca am mai adaugat ceva acolo.
viewtopic.php?f=23&t=145&p=3921#p3921
Marius Bancila
Fondator Codexpert, Microsoft MVP VC++
Site personal | Blog

Viorel
Microsoft MVP
Microsoft MVP
Posts: 293
Joined: 13 Jul 2007, 12:26

Re: stergere director

Post by Viorel » 23 May 2008, 16:24

În aplicaţii simpliste şi de tip consolă, probabil ar merge şi varianta bazată pe funcţia system:

Code: Select all


system("RMDIR /S /Q \"C:\\UnFolder\"");


Post Reply