Is there a way to understand if a program accepts a command line to pass it a list of files?

Products and tips

Moderator: Site Mods

User avatar
CrossX
Bronze Member
Bronze Member
Posts: 138
Joined: 2009 Dec 05, 21:13

Is there a way to understand if a program accepts a command line to pass it a list of files?

Post by CrossX »

Sorry for the long title, but I use this program (MassRename)
https://sourceforge.net/projects/mass-rename/
and I created a "user command" and put it on the toolbar

Now I wonder which command line should I write to pass it a list of files.
Any idea?

PS
That program is old and the developer (Stulle) is no more reachable

PPS
It is embedded in eMule MorphXT (the developer is Stulle) where it is possible to pass it a list of files to be renamend
User avatar
nikos
Site Admin
Site Admin
Posts: 16295
Joined: 2002 Feb 07, 15:57
Location: UK

Re: Is there a way to understand if a program accepts a command line to pass it a list of files?

Post by nikos »

you would have to read the program's documentation to see whether (and how) it accepts command line arguments
User avatar
CrossX
Bronze Member
Bronze Member
Posts: 138
Joined: 2009 Dec 05, 21:13

Re: Is there a way to understand if a program accepts a command line to pass it a list of files?

Post by CrossX »

So there is no way to understand it by looking at its C code?

Thanks nikos
User avatar
nikos
Site Admin
Site Admin
Posts: 16295
Joined: 2002 Feb 07, 15:57
Location: UK

Re: Is there a way to understand if a program accepts a command line to pass it a list of files?

Post by nikos »

if you know of C, then you can find it in MAIN() or WINMAIN() :)
Kilmatead
Platinum Member
Platinum Member
Posts: 4797
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Re: Is there a way to understand if a program accepts a command line to pass it a list of files?

Post by Kilmatead »

For what it's worth, I can find no indication (in docs or looking through the code) that command-line arguments are available. It seems intended to be wholly dialogue-based, so files are added only through drag-&-drop or browsing from within the programme itself. And just in case I missed something, I did install it, and like any animal rightfully distrustful of human intent, it resists all attempts to be fed by hand. :shrug:

As much as I am in favour of using older software, in this case unless you have an overwhelming emotional attachment to it for some reason (hey, it can happen!), I would suggest using an alternative. There are certainly no shortage of free renaming programmes of varying quality, and this forum has many threads related to them.

My personal choice is Renamer, which is free, still in development, and accepts command-line arguments as desired. It's as simple or complex as you could ever need without a million options thrown in your face all at once. But everyone has their own taste about renaming applications, so shop around.

Speaking of emotional attachments to programmes, Renamer was suggested to me years ago by the now-absent and long-missed user Narayan who wrote the original version of its manual, much as he did for x2 many years ago, so I find that link endearing for its own sake. May Shiva ever faithfully guide him on his noble path to pathlessness. :wink:
Tuxman
Platinum Member
Platinum Member
Posts: 1683
Joined: 2009 Aug 19, 07:49

Re: Is there a way to understand if a program accepts a command line to pass it a list of files?

Post by Tuxman »

CrossX wrote: 2025 Sep 22, 14:25 So there is no way to understand it by looking at its C code?
eMule and most of the ecosystem around it is famously written in C++, not C. Those are rather different things, despite the name. My first C++ code were a few eMule modifications, some of which almost didn't break too much. Ah, memories. (I am not entirely sure how much of that code was written by Stulle. He came to MorphXT rather late, but he continued its development as the last man standing from some point onwards.)

However, I do agree that there are enough alternatives around, one of them even being my last C++ code. (I don't plan to do that anymore, it is not fun at all.)
Tux. ; tuxproject.de
registered xplorer² pro user since Oct 2009, ultimated in Mar 2012
User avatar
CrossX
Bronze Member
Bronze Member
Posts: 138
Joined: 2009 Dec 05, 21:13

Re: Is there a way to understand if a program accepts a command line to pass it a list of files?

Post by CrossX »

Thank you all for examining the matter.
At this point I understand that it is not possible to do what I expected to do... not a problem anyway.

Like Kilmatead says I have an emotional attachment to this program since it is "embedded" also inside eMule MorphXT and I am a MorphXT user since 2005.
It is also very simple to use and, in the rare cases I use it, it does what I want.
My question rose because from within MorphXT (maybe it is a MassRename modified or customized part of MorphXT) it is possible to select files in Shared Files, right click on them and launch MassRename to have them already inside.

I'll have a look at the alternatives you suggested :beer: