| wi3ik (4) | |
|
Hi everyone. I've start to learn C++ and now have one trouble. Could someone say HOW I CAN WORK WITH DIRECTORIES FROM HARDDRIVE and, if needed, delete some choosed file or files? I have no idei how I should start and in which way move to do this. | |
|
|
|
| Bodya (6) | |||
You can use Windows command line;
| |||
|
Last edited on
|
|||
| wi3ik (4) | |
|
And what I'll get? How it works? Can you little bit more said about this or give some useful link? | |
|
|
|
| modoran (1245) | |||
You can use a function llike this, search MSDN to know exactly "how it works":
| |||
|
|
|||
| Bodya (6) | |
| run cmd on your computer and enter command "help" as result you will have list command. what you can use in system(). for get sintaksis you must write "command /?" | |
|
|
|
| wi3ik (4) | |
|
thanks............It's very interesting method, but I want to do it in other way.......not using system("command"); I want to use library windows.h but don't know how I'll do this. Maybe someone can share any idea about it? | |
|
|
|
| wi3ik (4) | |||
|
Hi everyone I've tried to wrote some code, but get one problem I don't know how to initialize the value of szDir, which will be used in FindFirstFile function. Can someone help me with this?
| |||
|
|
|||
| cire (2347) | ||||
You've already been supplied code for such a method. Using the following just seems so much simpler though.. (One can use boost if your compiler doesn't support this yet.)
| ||||
|
|
||||