We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi All,, Its a way off topic question from the list, with the hope that ppl here would not take it offensive, I appologize in advance. I am writing a C program for my computer . The system() command in C can used to run OS commands at runtime from the program. What i am looking for is some way by which i can convert a whole directory (and its subdirectories) into a single file. If anyone has done this before or has any idea how to go about doing this , then i would be happy to know that. One obvious way to do that is use winzip to make a .zip file of a directory. But i dont know how to run a windows application from C program. Any suggestion would be great. Thankzz && Bye -Rocknmoon
The file Archive Attribute is very useful for this; it can be used with WinZip, and the original command-line PKZIP, and XCOPY, etc, etc The command
XCOPY /s /m *.* dest
ATTRIB -a *.bak /s
Thanks for all the explanations. Andrew & Sven would you be kind enough to send me your sample batch files ?? Thanks in advance. rocknmoon@yahoo.com