Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 04, 2016, 10:36:58 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Command Line Renamer  (Read 4030 times)

logic7

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 20
    • View Profile
    • Donate to Member
IDEA: Command Line Renamer
« on: September 25, 2006, 07:50:30 AM »
I would like to see a command line based (non GUI) based renamer that supports regular explressions, works on both files and folders, and also supports working on \\UNC paths.

The ones out there, either do not support folder renaming, buggy, or do not have regular expression capability.

It is very handy to use in batch files.

Thank you.
« Last Edit: September 25, 2006, 02:25:57 PM by brotherS »

logic7

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 20
    • View Profile
    • Donate to Member
Re: IDEA: Command Line Renamer
« Reply #1 on: September 26, 2006, 10:22:55 AM »
Donation is waiting.  :)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,406
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Command Line Renamer
« Reply #2 on: September 26, 2006, 10:27:20 AM »
such a program should exist im quite sure.. hopefully someone will be able to point us to one.
definitely a useful idea.

Gerome

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 154
    • View Profile
    • Get my Freestyle Basic Script Language + compiler!
    • Donate to Member
Re: IDEA: Command Line Renamer
« Reply #3 on: September 26, 2006, 12:16:44 PM »
Hello,

Using FBSL, you can then execute the following code once, it'll self compile as an EXEcutable, and then follow the instructions...

#Option Explicit
#AppType Console
'// FILENAME/FOLDER RENAMER with UNC support
Cls
If Not STANDALONE Then
Fbsl2Exe(Command(1), fbsl_console)
ExitProgram(0)
End If

If CommandCount() <> 3 Then
Print., "*****************************"
Print "Usage : RENAMER Source Target"
Print "*****************************",.
Pause
ExitProgram(-1)
End If

Dim $source = Command(1)
Dim $target = Command(2)

Print "> Renaming ", source, " to ", target
Dim %result = MoveF(source, target)
If result <> 1 Then
Print "< Last error returned : ", GetLastError()
Else
Print "< ", source, " successfully renamed to ", target
End If

Yours,
(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
http://www.fbsl.net [FBSL Author]
http://gedd123.free.fr/FBSLv3.zip [FBSL Help file]
(¯`·._.·[If you need help... just ask]·._.·´¯)
« Last Edit: September 26, 2006, 12:18:38 PM by Gerome »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Command Line Renamer
« Reply #4 on: September 26, 2006, 01:05:00 PM »
Sorry for having to ask the stupid question, but what's a \\UNC path?

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,115
    • View Profile
    • Donate to Member
Re: IDEA: Command Line Renamer
« Reply #5 on: September 26, 2006, 03:08:00 PM »
UNC => Universal Naming Convention  => \\computername\sharedfolder\resource
http://en.wikipedia....al_Naming_Convention


Renamer is a command-line utility...
http://www.boolean.ca/renamer/

logic7

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 20
    • View Profile
    • Donate to Member
Re: IDEA: Command Line Renamer
« Reply #6 on: September 27, 2006, 10:28:02 AM »
such a program should exist im quite sure.. hopefully someone will be able to point us to one.
definitely a useful idea.

There are several, and I have tested all, unfortunately, not a single one combines commandline/regexp/file and folder renaming  features together.

logic7

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 20
    • View Profile
    • Donate to Member
Re: IDEA: Command Line Renamer
« Reply #7 on: September 27, 2006, 10:29:06 AM »
Hello,

Using FBSL, you can then execute the following code once, it'll self compile as an EXEcutable, and then follow the instructions...


Thanks for the assistance, but that does only renaming without regexp and doesn't handle forlder (or at least from what I tested so far), which is what I am looking for.

logic7

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 20
    • View Profile
    • Donate to Member
Re: IDEA: Command Line Renamer
« Reply #8 on: September 27, 2006, 10:30:27 AM »

Renamer is a command-line utility...
http://www.boolean.ca/renamer/

I have used that for a while, nice but again, it doesn't handle folder renaming, and in fact, it is the closest to what I am looking for.