I've seen similar quetsions asked and reasonable answers given. Unfortunately, none of the answers really address the problem at hand.

I need to write some of the dos commands in Borland C++ Builder (v3.0). del, copy, move, attrib, md and deltree. I've done it and they all work very well on individual files. The problem comes in when using wild cards. (I wasn't thinking about wildcards when I wrote them). Of all the solutions I've seen here, none take wildcards into account except for those using system(). Now the system() function is great except that every release of Windows is in flux and who knows what system commands Microsoft is going to eliminate. For instance, had I written system("deltree c:\test") in Windows 95 (I think it was still there in Windows 95) it would have workd fine, but in NT and 2000 the command is system("rd c:\test /s") (at least at the command line it would be rd c:\test /s). I want to write this to work for years to come and not fail when Microsoft decides to eliminate the copy command from the system. Has anyone written some of the dos files in c or c++ as an exercise in a class or done something similar with the same concerns I have?

Thanks for any help.

Dana