Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I hate DOS Batch scripts
Author Message
Kuu
Awesome

Posts: 1,112.1322
Threads: 61
Joined: 13th Aug 2008
Reputation: -2.97985
E-Pigs: 33.8125
Offline
Post: #1
I hate DOS Batch scripts
Spent over 30 minutes trying to create such a simple script.

Was so close to jumping into visual studio... could have made the same script with a GUI in half the time...

Had to convert a 359 page book from SFW that I ripped from the net to image files.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@ECHO OFF
Echo Setting variables...
set counterpage=18
set counter=1
Echo Coverting... Please wait...
:loop
swfrender page_00%counterpage%_L1-%counter%.swf -o Output\page_00%counterpage%_L1-%counter%.png
Echo Done Page %counter%.
set /a counterpage+=1
set /a counter+=1
if %counterpage%==100 GOTO PHASE2
goto loop

:PHASE2
ECHO ------------------------
ECHO Switched to 100.
ECHO
:phaseloop
swfrender page_0%counterpage%_L1-%counter%.swf -o Output\page_0%counterpage%_L1-%counter%.png
Echo Done Page %counter%.
set /a counterpage+=1
set /a counter+=1
if %counterpage%==360 GOTO PWD_END
goto phaseloop

:PWD_END
Echo "Done"
pause


[Image: B5b0K][Image: FSN6.png]
02/06/2012 06:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
I hate DOS Batch scripts - Kuu - 02/06/2012 06:10 PM
RE: I hate DOS Batch scripts - Barcelona - 02/06/2012, 11:20 PM
RE: I hate DOS Batch scripts - Kuu - 03/06/2012, 01:32 AM
RE: I hate DOS Batch scripts - Barcelona - 03/06/2012, 02:50 AM
RE: I hate DOS Batch scripts - trademark91 - 03/06/2012, 09:14 PM
RE: I hate DOS Batch scripts - Joom - 03/06/2012, 10:02 PM
RE: I hate DOS Batch scripts - Kuu - 06/06/2012, 10:53 PM
RE: I hate DOS Batch scripts - Joom - 07/06/2012, 04:48 AM
RE: I hate DOS Batch scripts - lembas - 06/06/2012, 11:46 PM
RE: I hate DOS Batch scripts - ZiNgA BuRgA - 07/06/2012, 02:08 AM
RE: I hate DOS Batch scripts - Kuu - 07/06/2012, 04:25 PM
RE: I hate DOS Batch scripts - ZiNgA BuRgA - 07/06/2012, 04:48 PM
RE: I hate DOS Batch scripts - Kuu - 07/06/2012, 05:22 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)

 Quick Theme: