CompuServe Thread

Unzipping w/batch files

2 messages in this thread
#53469From: Larry MintonAug 14, 1993 2:51 PM
Rick: Some stuff I remember, other things I forget (like what day is today?). Let's see if I understand what you want to do. You want to have a set of TGA files in a .ZIP file. These .TGA files are sequentially numbered. On each call from video post, you want to delete the .tga last file pulled from the zip file, and pull the next numbered .tga file from the .zip file. You then exit and return to video post. Does that sound right? If not, give me a description of what you are trying to do. If the above is accurate, I can think of 2 easy paths. The first is to use 4dos instead of command.com. With 4dos, you can set up an environment variable specifying what file to start with when pulling .tga files from the zip file, use that environment variable to in specifying the .tga files to delete and pull from .zip file, and increment the counter. I've used 4dos for so long now I am not even sure what you can/can't do using command.com when in a secondary shell (which is where you would be coming out of video post). The 2nd easy path would to create a small basic/c/fortran/whatever program to do the above. Create a counter file before starting 3ds specifying what .tga file to start with, have the program read in that file, do the file delete and .zip extraction, and write out a new counter file for the next iteration. (Or if the counter file doesn't exist, have it ask you for which .tga file to start with on the first call from video post, and work from there). That's my thought for today! LAM
#53669From: Rick MillerAug 17, 1993 9:07 AM
Larry: I really appreciate your help. Yes you are write in your assumption of what I need to do. I wonder why more people are not interested in this thread, I know most people don't have several Gigs available on their hard drives. By no means am I a programmer, but I kind of see what your a saying. My trouble will be in trying to write the necessary programs. Do you think that the batch file you referred to in PC Magazine (Vol 12, No. 7) could be modified to read/write the counter file that you refer to in the "2nd easy path". Would the counter file hold just the 4 digit number or the whole file name? Anyone else got any ideas? I'm surprised that this has not been done already. This would make a great utility that almost everyone could use. Regards………Rick – Technical Animations