PDA

View Full Version : Example program....



JIMINATOR
04-26-2005, 05:03 AM
time and datestamp your screenshots.... in sorted order...

use notepad to make ss.bat
save this file in your serious sam folder.
replace all \sam\ below with whatever your serious sam folder is
save the file, create a link, drag to your desktop and doubleclick to run
the files will be renamed and display sorted based on time
i also move them to a separate folder. that keeps them from getting renamed
again, and also speeds later screenshots.

===========begin ss.bat===============
mkdir C:\sam\ScreenShots
mkdir C:\sam\Screens
cd C:\sam\ScreenShots
for /f "tokens=1-8 delims=/: " %%i in ('dir *.tga') do ren "%%p" "%%k%%i%%j%%n%%l%%m_%%p"
move *.tga C:\sam\Screens
============end=======================

this works for sam but will really work for any game that takes screenshots.
in other games you can't tell anything by the name, but at least you will be able to see when the file was created.

example...

before:

04/25/2005 11:03 PM DM_LittleTrouble_shot0008.tga
04/25/2005 11:04 PM DM_LittleTrouble_shot0009.tga
04/24/2005 01:24 PM DM_TheLostTomb_shot0000.tga
04/25/2005 07:59 PM DM_TheLostTomb_shot0001.tga
04/25/2005 11:49 PM DM_TheLostTomb_shot0002.tga
04/25/2005 11:19 PM Fortress_shot0002.tga
04/25/2005 11:20 PM Fortress_shot0003.tga
04/25/2005 11:21 PM Fortress_shot0004.tga
04/25/2005 01:12 AM Yodeller_shot0004.tga
04/25/2005 11:58 PM Yodeller_shot0005.tga
04/25/2005 11:59 PM Yodeller_shot0006.tga

after:

04/25/2005 12:55 AM 20050425AM1255_DM_LittleTrouble_shot0005.tga
04/25/2005 12:56 AM 20050425AM1256_DM_LittleTrouble_shot0006.tga
04/25/2005 07:59 PM 20050425PM0759_DM_TheLostTomb_shot0001.tga
04/25/2005 11:02 PM 20050425PM1102_DM_LittleTrouble_shot0007.tga
04/25/2005 11:03 PM 20050425PM1103_DM_LittleTrouble_shot0008.tga
04/25/2005 11:04 PM 20050425PM1104_DM_LittleTrouble_shot0009.tga
04/25/2005 11:19 PM 20050425PM1119_Fortress_shot0002.tga
04/25/2005 11:20 PM 20050425PM1120_Fortress_shot0003.tga
04/25/2005 11:21 PM 20050425PM1121_Fortress_shot0004.tga
04/25/2005 11:49 PM 20050425PM1149_DM_TheLostTomb_shot0002.tga
04/25/2005 11:58 PM 20050425PM1158_Yodeller_shot0005.tga
04/25/2005 11:59 PM 20050425PM1159_Yodeller_shot0006.tga

please note, the program does no errorchecking, but with the two mkdir statements it should not cause any errors.

merkwannabe
04-26-2005, 05:52 AM
SWEET. That's cool.. OMG.. I might be able to organize my old screenies now! Thanks Jimster.. Jimmy.. Jimmeh.. JIMEY.. Aw heck, BROTHER!