Alt.Binz forum

Alt.Binz (English) => Help => Topic started by: chris8837 on October 11, 2010, 08:46:06 am

Title: Renaming after downloaded
Post by: chris8837 on October 11, 2010, 08:46:06 am
I was just wondering if there was a way that I can get the downloaded file to rename to the folder name

I'm always renaming the file to the fit the folder format so i was thinking there has to be a way to make things simpler.

I shouldn't be complaining due to this program being the best out there,

Thanks
Title: Re: Renaming after downloaded
Post by: Hecks on October 11, 2010, 01:33:36 pm
Yes, you can do this with an Execute Command on Completion script:

https://www.altbinz.net/wiki/Execute_Command_on_Completion

The $c variable (collection name) is probably what you want in this case.
Title: Re: Renaming after downloaded
Post by: chris8837 on October 12, 2010, 03:47:14 am
I don't know much about doing this is there a tutorial about this or has someone posted a code for this.

Sorry I'm just new to executing commands


THanks again
Title: Re: Renaming after downloaded
Post by: ChuckC on July 31, 2012, 07:01:49 am
I use this batch script file for renaming the file name (for .mp4) to the folder name it was unraraed into:

@ECHO OFF
CLS
SET "currentfolder=%cd%"
CD ..
SET "upperfolder=%cd%"
CALL SET folder=%%currentfolder:%upperfolder%\=%%
CD %folder%
rename *.mp4 "%folder%.mp4

Hope this helps. :)