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
Barcelona
Too Young To Care

Posts: 1,247.2872
Threads: 88
Joined: 10th Jul 2010
Reputation: -0.02892
E-Pigs: 60.4042
Offline
Post: #2
RE: I hate DOS Batch scripts
Does it work? I see where the problem is.

[Image: A73TX.png]
Quotes That Made Me Lol
Joomla12 Wrote:Who are you?
(02/08/2011 08:26 AM)eKusoshisut0 Wrote:  ┻┻ ︵ヽ(`Д´)ノ︵ ┻┻
Previous Signatures
First Signature Wrote:Rep me up or I'll GENTLY CARESS you in the booty!
Second Signature Wrote:Studies have shown that for everyone person that doesn't rep me up, an angel gets a hernea.
Third Signature Wrote:Dead Trademark91 killed me.
Fourth Signature Wrote:Windows Proud
Fifth Signature Wrote:I'm waiting for someone to chime in with an arrow. Any tamed wolves you can be traced back to my forum signature.
Sixth Signature Wrote:[Image: 7hjyW.png]
02/06/2012 11:20 PM
Find all posts by this user Quote this message in a reply
Assassinator
...

Posts: 6,646.6190
Threads: 176
Joined: 24th Apr 2007
Reputation: 8.53695
E-Pigs: 140.8363
Offline
Post: #3
RE: I hate DOS Batch scripts
Yeah I hate it too.

I wrote some drag and drop PSP encoding script some long time ago completely in that.  500 lines of fucking DOS code, because I didn't know any better back then.

Oh yeah, it does automatic aspect ratio aware resizing, auto font and subtitle extraction and hardsubbing, x264 profiles, and VFR aware encoding and some other shit, which is why it took so many lines.
(This post was last modified: 02/06/2012 11:40 PM by Assassinator.)
02/06/2012 11:38 PM
Find all posts by this user Quote this message in a reply
Kuu
Awesome

Posts: 1,112.1322
Threads: 61
Joined: 13th Aug 2008
Reputation: -2.97985
E-Pigs: 33.8125
Offline
Post: #4
RE: I hate DOS Batch scripts
(02/06/2012 11:20 PM)Barcelona Wrote:  Does it work? I see where the problem is.

Yea, it works.

[Image: B5b0K][Image: FSN6.png]
03/06/2012 01:32 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Barcelona
Too Young To Care

Posts: 1,247.2872
Threads: 88
Joined: 10th Jul 2010
Reputation: -0.02892
E-Pigs: 60.4042
Offline
Post: #5
RE: I hate DOS Batch scripts
Oh, my mistake then.
*An embarrassed dark_mirage walks away...

[Image: A73TX.png]
Quotes That Made Me Lol
Joomla12 Wrote:Who are you?
(02/08/2011 08:26 AM)eKusoshisut0 Wrote:  ┻┻ ︵ヽ(`Д´)ノ︵ ┻┻
Previous Signatures
First Signature Wrote:Rep me up or I'll GENTLY CARESS you in the booty!
Second Signature Wrote:Studies have shown that for everyone person that doesn't rep me up, an angel gets a hernea.
Third Signature Wrote:Dead Trademark91 killed me.
Fourth Signature Wrote:Windows Proud
Fifth Signature Wrote:I'm waiting for someone to chime in with an arrow. Any tamed wolves you can be traced back to my forum signature.
Sixth Signature Wrote:[Image: 7hjyW.png]
03/06/2012 02:50 AM
Find all posts by this user Quote this message in a reply
trademark91
Unique?
Fractal Insanity

Posts: 4,719.9300
Threads: 269
Joined: 4th Jan 2008
Reputation: -6.15982
E-Pigs: 105.8691
Offline
Post: #6
RE: I hate DOS Batch scripts
Bash > Batch

[Image: 531115][Image: 76561198014212040.png]
windows Proud
03/06/2012 09:14 PM
Find all posts by this user Quote this message in a reply
Joom
WOOP
Worlds End

Posts: 4,206.7320
Threads: 417
Joined: 20th Mar 2009
Reputation: 5.41709
E-Pigs: 134.1772
Offline
Post: #7
RE: I hate DOS Batch scripts
(03/06/2012 09:14 PM)trademark91 Wrote:  Bash > Batch

[Image: ROVBdMh.png]
3DS Friend Code: 5000-6045-4964
03/06/2012 10:02 PM
Find all posts by this user Quote this message in a reply
Kuu
Awesome

Posts: 1,112.1322
Threads: 61
Joined: 13th Aug 2008
Reputation: -2.97985
E-Pigs: 33.8125
Offline
Post: #8
RE: I hate DOS Batch scripts
(03/06/2012 10:02 PM)Joom Wrote:  
(03/06/2012 09:14 PM)trademark91 Wrote:  Bash > Batch

Yes. But for my purposes, Windows > Linux.

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

Posts: 4,365.2931
Threads: 184
Joined: 30th Apr 2008
Reputation: -2.56923
E-Pigs: 154.3525
Offline
Post: #9
RE: I hate DOS Batch scripts
(03/06/2012 10:02 PM)Joom Wrote:  
(03/06/2012 09:14 PM)trademark91 Wrote:  Bash > Batch
[Image: trufax.png]

I'm gay.
Spoiler for online game stuff:
[Image: 76561198003967361.png]
[Image: thelemmingbas.png]
3DS FC: 4184-1632-9353
Spoiler:
[Image: wQZsI.jpg]
Spoiler:
In the words of the wise trademark91:
windows Proud
06/06/2012 11:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #10
RE: I hate DOS Batch scripts
^ TRU » TRAY


Eh, a lot of it is familiarity.  Being unfamiliar with something means it takes you longer to get it right.
07/06/2012 02:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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

 Quick Theme: