Author Topic: help with batch file?  (Read 7762 times)

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Re: help with batch file?
« Reply #15 on: July 14, 2010, 05:22:13 pm »
Quote
Yes, it does everything else just fine, the only thing it doesn't like is the variable.

So ... it doesn't like the $col variable, but $d is OK on its own when you run the cleanup script?
« Last Edit: July 14, 2010, 05:24:04 pm by Hecks »

Offline Rdl

  • Administrator
  • *****
  • Posts: 4073
Re: help with batch file?
« Reply #16 on: July 14, 2010, 07:33:36 pm »
Well, there are no spaces in the directory; everything goes right into c:\temp.  I have tried all kinds of combinations for the Default Execute Command:

"C:\Program Files (x86)\AltBinz\cleanup.bat" $d $col
"C:\Program Files (x86)\AltBinz\cleanup.bat" "$d $col"
"C:\Program Files (x86)\AltBinz\cleanup.bat" "'$d' '$col'"
"C:\Program Files (x86)\AltBinz\cleanup.bat" "$d" "$col"

and they all produce the same result from the following code:

:set_logfile
set logfile=C:\temp\dldlog.txt
if not exist %logfile% echo Alt.binz Download Log >> %logfile%

:set_variables
set dldir=%1
set colname=%2

echo download directory is %dldir% >> %logfile%
echo collection name is %colname% >> %logfile%


Alt.binz Download Log
download directory is
collection name is


Just blanks, both of them.  Again, if I can figure out what I'm doing wrong with passing the variables, I might be able to do what I want with the batch file and automating the conversion.

Thanks for all the help so far.  I'll get it someday.
Could you move cleanup.bat to lets say c:\cleanup.bat nad modify execute command.

Here, this is result of your bat file:
Code: [Select]
Alt.binz Download Log
download directory is c:\download\stinky_ranks-we_nuh_badda-(promo_cds)-2010-yvp_int
collection name is Stinky_Ranks-We_Nuh_Badda-(Promo_CDS)-2010-YVP_INT
download directory is "c:\download\1 2 3stinky_ranks-we_nuh_badda-(promo_cds)-2010-yvp_int"
collection name is "1 2 3Stinky_Ranks-We_Nuh_Badda-(Promo_CDS)-2010-YVP_INT"

First one is: "C:\Alt.Binz\cleanup.bat" $d $col
Second one is: "C:\Alt.Binz\cleanup.bat" "$d" "$col"
So it works just fine.

Offline musictrivianut

  • Contributor
  • ***
  • Posts: 34
Re: help with batch file?
« Reply #17 on: July 15, 2010, 01:28:08 am »
Well, the latest weirdness is that, after moving the batch file to the root directory, it won't even run.  And altbinz didn't like passing either variable by itself, $d or $col.  This is all very strange.  It's great that the file I have works for someone, I just wish it worked for me.  Would a fresh install help maybe?  Would I lose my queue and preferences if I did that?

And yet again, I really appreciate the time and effort you guys are putting in to helping out one lone guy out there.  It's pretty cool.

Offline musictrivianut

  • Contributor
  • ***
  • Posts: 34
Re: help with batch file?
« Reply #18 on: July 15, 2010, 05:15:39 am »
Okay, so I tried a fresh install, after saving my queue and RSS filters.  Having the batch file in the alt.binz directory (which I put in the root directory this time) did not work, but it does seem to work if it is in the root directory.  Weird.

So, I have altbinz passing at least the collection name correctly now, so the next step is to work out the kinks in getting it to start the muxing program.  I'll have to finish tackling that tomorrow.  I'll let you know how it goes.

Thanks again for all the tips and ideas.

Offline Rdl

  • Administrator
  • *****
  • Posts: 4073
Re: help with batch file?
« Reply #19 on: July 15, 2010, 07:42:13 am »
Ussual UAC sh*t