CompuServe Thread

#Unzipping w/batch files

9 messages in this thread
#55028From: Larry MintonAug 26, 1993 7:55 PM
I hope your father is doing well. (1) I intentionally wanted to set the dat file name in extract.dat to handle the case where the dat file sequence number wasn't the same as the frame number. I could set it up so that the program reads the file created by 3DS which gives the current frame number, and work off of that if extract.dat does not exist. The problem with that is figuring out path-wise where everything is (frame counter file, location of zip file, where the dat file is suppose to go.) Either that or allow a parameter on the command line calling EXTRACT which specifies the starting frame number. Note that if EXTRACT.DAT does not exist on the first call to EXTRACT, it asks you what file sequence number to start with and create it's own EXTRACT.DAT. (2) EXTRACT.EXE and PKUNZIP can go in any directory on the path. EXTRACT.DAT and the .ZIP file should be in a directory in one of the map paths. Since EXTRACT deletes the previous dat file, you don't want to move the dat file after extracting it. An example batch file would be: .@Echo off .c: .cd\adesk\3dsr2\maps .extract .exit (3) Extract.for is the Fortran source file for Extract.exe. Just in case you wanted to see how something was actually being done. Hmmm. Maybe I could read in configuration data as parameters to EXTRACT. For example: .EXTRACT Zip_file_name_with_path Destination_map_path EXTRACT.DAT_path XXXX .Where if XXXX is numeric, it is the starting sequence number . XXXX is not numeric, it is the location of the 3DS frame count . file (use frame count as sequence number) . XXXX doesn't exist, look for EXTRACT.DAT Would that cover all possibilities (other than operator error)? LAM
#55134From: Rick MillerAug 27, 1993 3:00 PM
Larry: >> (1) I intentionally wanted to set….. I can see where you are trying to keep it flexible, my problem comes when I start and stop the rendering. This means that I have to remember what images go with what frame. If I can't have it both ways, then I would certainly want to keep it flexible. Maybe you can use the frame count from 3DS as an OFFSET to the image to be extracted. Example, frame 0 in 3DS could require image xxxx0024.tga; frame 1 – image xxxx0025.tga…… >> (3) Extract.for is the Fortran source file for Extract.exe. Just in case you wanted to see how something was actually being done. I guess I showed my ignorance there. >> Hmmm. Maybe I could read in configuration data as parameters to EXTRACT. For example: .EXTRACT Zip_file_name_with_path Destination_map_path EXTRACT.DAT_path XXXX .Where if XXXX is numeric, it is the starting sequence number . XXXX is not numeric, it is the location of the 3DS frame count . file (use frame count as sequence number) . XXXX doesn't exist, look for EXTRACT.DAT << If xxxx is not numeric, it is the location of the 3DS frame count file (use frame count as "OFFSET" to sequence number) Sounds good to me. Regards………Rick – Technical Animations
#55476From: Larry MintonAug 30, 1993 2:08 PM
OK, I will go with a bunch of command line parameters <g>. I am off to glorious Paducah, KY for a week. I'll try to put up a new version next Sunday. Anyone know where 3ds puts the "current frame counter" file, and what its name is? Thanx, LAM
#55579From: Aug 31, 1993 1:17 AM
Larry: >> Anyone know where 3ds puts the "current frame counter" file, and what >> its name is? Trivia question! FRAME.INF, and it is written to the PROCESS subdirectory. What do I win? <g> Greg Pyros
#55620From: Rick MillerAug 31, 1993 9:56 AM
Pat Pat Pat……Feel better now!!! Regards………Rick – Technical Animations
#55720From: Aug 31, 1993 11:54 PM
Rick: >> Pat Pat Pat……Feel better now? Sure do! And now I know why my Cocker Spaniels enjoy it so much! <g> Greg Pyros
#55619From: Rick MillerAug 31, 1993 9:56 AM
Larry: Enjoy your trip!!! I'm not in any kind of a bind now, since I converted all my images to a compressed tga format (avg. size of 300k), Sunday is in plenty of time. If I get any details for the next job, then HD space may become a concern once again. Regards………Humble & Bowing Rick – Technical Animations
#55957From: Larry MintonSep 2, 1993 12:26 PM
"Humble and bowing Rick" Words of wisdom: never bow to either the Chinese or the Japanese. You will only embarress yourself and them. Americans just don't know when and how to bow properly. Always hated it when, as the elevator doors closed, your Japanese host is bowing to you, and you stand there like a total dweeb going, uhhh.. what am I suppose to do, bow back? How deep? Where should my hands be? Oh well… I kicked myself out of Paducah and came back home early. I was getting less done there than I do here. I'll try to cobble a new version of the program up over the next couple of days. LAM
#56073From: Rick MillerSep 3, 1993 9:45 AM
Larry: I've had a similar experience with a friends roommate in college, we all had a pretty good laugh after he left. Maybe you were not as productive, but its always nice to get out of the office. Like I said in a previous message, don't break your neck over getting it done. I have converted all the images to compressed targa format and then zipped up so that I can get them on and off the hard disk in a moments notice. Although I'm sure I will need it eventually, when I have two projects going at the same time. Let me know when you get it done, OK. Have a good weekend!! Regards…………Rick – Technical Animations