My Assistant
Windows Bat Mania |
Apr 27 2005, 04:30 PM
Post
#1
|
|
|
Founder ![]() ![]() ![]() ![]() Group: Chairman Posts: 14457 Joined: 8-February 04 Member No.: 1 |
Most of us here probably use PTGui, img2png and so on...
well - when I have a sols full of .imgs - I put img2png in it, and a bat file containing.. del *rat*.* md IMG move *r1*.IMG IMG move *r2*.IMG IMG move *r3*.IMG IMG move *r4*.IMG IMG move *r5*.IMG IMG move *r6*.IMG IMG move *r7*.IMG IMG move *r8*.IMG IMG move *L8*.IMG IMG img2png *.IMG -r move *.IMG IMG Sometimes I have other things in there - like moving other filetypes ( IOsomething is one ) - and sometimes I just MD a thumb folder, and move the processed ones in there afterwards (this is what I do in my huuuge HDD of archived stuff - so I have all the IMG's, and all of them as PNG's, with left in the root, right in a subfolder and thumbs in a sub folder. I use a photoshop action that takes L257 or whatever, and reduces it to a colour frame on L5 - then I cull the other frames, leaving me with all the colour frames from that sol as PNG's THEN - I can use autopano.exe /project:ptgui which will create a new pts file for any and all mosaics it recognises Anyhow - anyone know a way of writing a bat or something - which will go into folder consecutively, and run those bat files? i.e. I've got folders called Sol001 to Sol270 - and I can dump the img2png and my bat file into each - but then I have to go and run it 270 times to get the results - any ideas on shortcuts for that? Doug |
|
|
|
![]() |
Apr 28 2005, 11:46 AM
Post
#2
|
|
|
Junior Member ![]() ![]() Group: Members Posts: 36 Joined: 7-November 04 From: Sweden Member No.: 108 |
They should stay as they are. If you type the command at the command prompt rather than in a .bat file, you change the double %% to a single %, but otherwise they stay as they are.
When executed, the ??? will be matched against three arbitrary characters, and the %%t will be replaced with the matcing folders, one for each iteration. The official Windows XP batch file specification can be found here: http://www.microsoft.com/resources/documen...n-us/batch.mspx |
|
|
|
djellison Windows Bat Mania Apr 27 2005, 04:30 PM
M_Welander QUOTE (djellison @ Apr 27 2005, 05:30 PM)Anyh... Apr 28 2005, 09:40 AM
djellison Looks like it might work - could it be rewritten t... Apr 28 2005, 09:55 AM
M_Welander Yes, you can use pretty much any command you want ... Apr 28 2005, 10:58 AM
djellison Just so I'm clear - should the ??? and %% stay... Apr 28 2005, 11:31 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 16th December 2024 - 05:42 AM |
|
RULES AND GUIDELINES Please read the Forum Rules and Guidelines before posting. IMAGE COPYRIGHT |
OPINIONS AND MODERATION Opinions expressed on UnmannedSpaceflight.com are those of the individual posters and do not necessarily reflect the opinions of UnmannedSpaceflight.com or The Planetary Society. The all-volunteer UnmannedSpaceflight.com moderation team is wholly independent of The Planetary Society. The Planetary Society has no influence over decisions made by the UnmannedSpaceflight.com moderators. |
SUPPORT THE FORUM Unmannedspaceflight.com is funded by the Planetary Society. Please consider supporting our work and many other projects by donating to the Society or becoming a member. |
|