Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-20-2005, 08:08 PM   #1
RayVega
Confirmed User
 
RayVega's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: New York ICQ#348007554
Posts: 4,212
Anyone remember batch file programming in DOS?

Anyone here remember how to write a DOS batch file? need to run a dos app like this

executable input file output file
program.exe oldsong0001from_PS new_track01.mp3

I have over 80 tracks and would love to run a single batch to grab all .adx's in the directory and convert them to a numbered mp3 fil. So i dont have to type em individual.

Just cannot dig up the little folder in my brain that remembers dos commands or batch files...aaaaaarghhh
__________________
Ray "The Don" Vega

Managing Director
Private Equity Fund

[email protected]
RayVega is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 08:12 PM   #2
Fred Quimby
Confirmed User
 
Join Date: Jul 2004
Location: Long Island, NY
Posts: 5,430
10 print "Fred Quimby"
20 goto 10
__________________
Fred Quimby is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 08:17 PM   #3
ChrisAnubis
Confirmed User
 
Join Date: Aug 2005
Posts: 1,263
Quote:
Originally Posted by Fred Quimby
10 print "Fred Quimby"
20 goto 10
Nice Fred, except that is BASIC, not batch programming.

For your batch programming, you would need to know if the actual program can run command line parameters, and if it would allow batch to continue running. I am not sure about the renaming of your files, would have to be built into the program I believe, since batch basically (Hey Look Fred-BASIC) runs dos commands and command line program functions.

I MAY be mistaken though. I never said I was a programming expert.
__________________
I'm still making money with Mayor's Money, Pimproll & jaYMan Cash . Thunder-Ball.net - Member
ICQ:276-917-507
ChrisAnubis is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 08:20 PM   #4
sfera
Confirmed User
 
Join Date: Aug 2005
Location: ICQ: 248877409
Posts: 8,597
i remember it, ppl still use them now and then
sfera is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 08:44 PM   #5
BillPMB
Confirmed User
 
Join Date: Nov 2002
Posts: 147
Something like this might work.

@echo off
ren *.adx *.mp3
set Count=0
dir /b | findstr "[0-9][0-9].mp3" > tmp1.txt
sort tmp1.txt /+5 > tmp2.txt
for /f %%a in (tmp2.txt) do (call :incr
call :ReNumber %%a %%Count%%)
erase tmp?.txt *.tmp
exit /b
:incr
set /a Count=%Count%+1
goto :eof
:ReNumber %1 %2
if exist %1 (echo renamed %1 Old%2.mp3
ren %1 %1.tmp
ren %1.tmp Old%2.mp3) else (echo renamed %1 Old%2.mp3
ren %1 Old%2.mp3)
goto :eof

You may have to do some tweaking, but that'll get you close.
__________________

PornMegabucks
BillPMB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 08:45 PM   #6
mikeyddddd
Viva la vulva!
 
mikeyddddd's Avatar
 
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
Something like this:

create the process bat file

program.exe %%x.adx %%x.mp3

Run this command for each folder

lfnfor off
for %%x in (drive:\folder\*.adx) do call process.bat %%x

It's been awhile

And you got another answer while I replied

Last edited by mikeyddddd; 12-20-2005 at 08:47 PM..
mikeyddddd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 08:47 PM   #7
sickbeatz
The Hustler
 
Join Date: Feb 2005
Posts: 4,993
program.exe < input file > output file
__________________

GalleryFeeder.com
sickbeatz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 08:48 PM   #8
sickbeatz
The Hustler
 
Join Date: Feb 2005
Posts: 4,993
Quote:
Originally Posted by sickbeatz
program.exe < input file > output file
nevermind i thought you trying to do I/O from STDOUT/STDIN
__________________

GalleryFeeder.com
sickbeatz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 09:33 PM   #9
Fred Quimby
Confirmed User
 
Join Date: Jul 2004
Location: Long Island, NY
Posts: 5,430
Quote:
Originally Posted by ChrisAnubis
Nice Fred, except that is BASIC, not batch programming.

For your batch programming, you would need to know if the actual program can run command line parameters, and if it would allow batch to continue running. I am not sure about the renaming of your files, would have to be built into the program I believe, since batch basically (Hey Look Fred-BASIC) runs dos commands and command line program functions.

I MAY be mistaken though. I never said I was a programming expert.
Do you want the fast way or the right way?





thats what my dad always told me
__________________
Fred Quimby is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 09:34 PM   #10
Fred Quimby
Confirmed User
 
Join Date: Jul 2004
Location: Long Island, NY
Posts: 5,430
I usually chose the fast way
__________________
Fred Quimby is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 11:22 PM   #11
reed_4
Confirmed User
 
Join Date: Jul 2005
Posts: 9,640
Damn, I forgot those DOS commands.
__________________
reed_4 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.