Author Topic: Renaming after downloaded  (Read 2256 times)

Offline chris8837

  • Contributor
  • ***
  • Posts: 15
Renaming after downloaded
« 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

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Re: Renaming after downloaded
« Reply #1 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.

Offline chris8837

  • Contributor
  • ***
  • Posts: 15
Re: Renaming after downloaded
« Reply #2 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

Offline ChuckC

  • Contributor
  • ***
  • Posts: 1
Re: Renaming after downloaded
« Reply #3 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. :)