DonationCoder.com Software > Post New Requests Here
IDEA: Command Line Renamer
logic7:
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.
logic7:
Donation is waiting. :)
mouser:
such a program should exist im quite sure.. hopefully someone will be able to point us to one.
definitely a useful idea.
Gerome:
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
jgpaiva:
Sorry for having to ask the stupid question, but what's a \\UNC path?
Navigation
[0] Message Index
[#] Next page
Go to full version