Forum: Poser - OFFICIAL


Subject: Is there a program to change a batch of filetypes (dir of .pz2 to .cm2)

logansfury opened this issue on Feb 21, 2006 ยท 27 posts


lmckenzie posted Thu, 23 February 2006 at 6:44 AM

I just wrote a little SendTo utility for copying/moving files amongst Poser's folders but it looks like FolderView may render that redundant. It would have been pretty easy to add the renaming functionality but no need to duplicate what semidieu is doing. My DOS skills are hardly great and I've forgotten most of what I knew years ago. After figuring out how compiled programs handle sendto I was curious to see how batch files work and came up with this: In Notepad or another text editor, add the following to a new document: xcopy %1*.pz2 %1*.cm2 del %1*.pz2 move %1 "J:Program FilesMetaCreationsPoser 4Runtimelibrariescamera" Substitute the proper path to your camera folder on line 3. Note you will need to add the quotes if there are any spaces in the path, best to just include them. Save the file as pz2Tocm2.bat Make sure it ends up with a .bat extension, not .txt - rename if necessary. Now, move the file to your SendTo folder. On my Win2K system, it's under Documents and Settings and my login. When you right-click on a folder in explorer and select SendTo, you should see your new .bat file as an option. To use it, right-click on a folder in your poses folder and select SendTo->pz2Tocm2. It should rename the pz2 files to Cm and move the folder to cameras. I tried it on a couple of folders and it worked fine but please make backups and test it before running it in earnest. The %1 resolves to the folder name which gets sent to the batch file. This is essentially what leather-guy is using except you don't have to copy the batch file into every folder you want to convert. You can leave off the third line if you want to move the folder manually. Make sure to only use it on Pose folders. It shouldn't rename or delete anything if it doesn't find .pz2 files but it will move the folder and its contents to your cameras folder. Using it on individual files will likely move them also.

"Democracy is a pathetic belief in the collective wisdom of individual ignorance." - H. L. Mencken