![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jul 2004
Location: Long Island, NY
Posts: 5,430
|
10 print "Fred Quimby"
20 goto 10 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Aug 2005
Posts: 1,263
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Aug 2005
Location: ICQ: 248877409
Posts: 8,597
|
i remember it, ppl still use them now and then
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Viva la vulva!
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
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
The Hustler
Join Date: Feb 2005
Posts: 4,993
|
program.exe < input file > output file
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
The Hustler
Join Date: Feb 2005
Posts: 4,993
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Jul 2004
Location: Long Island, NY
Posts: 5,430
|
Quote:
thats what my dad always told me |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Jul 2004
Location: Long Island, NY
Posts: 5,430
|
I usually chose the fast way
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Jul 2005
Posts: 9,640
|
Damn, I forgot those DOS commands.
![]()
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |