Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: A bug of neroaactag.exe? (Read 3002 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

A bug of neroaactag.exe?

Hi there, I have troubles in  setting tag value containing quotation marks

Code: [Select]
C:\>neroaactag test.m4a -meta:title="Test Title"
Processing file: "test.m4a"
Updating MP4 file...
File updated successfully.


It just worked fine to set the title value to Test Title



Code: [Select]
C:\>neroaactag test.m4a -meta:title=""Test Title""

Processing file: "test.m4a"
  Invalid/unknown command: Title


It failed when I tried to set the title value to "Test Title"
Can anyone tell me what's wrong with the command or is this just a bug of neroaactag.exe?
Thank you in advance.

A bug of neroaactag.exe?

Reply #1
\" works:
Code: [Select]
neroaactag test.m4a -meta:title="\"Test Title\""


A bug of neroaactag.exe?

Reply #2
Here is the MSVC runtime command line arguments (argv) parsing rule:
Parsing C++ Command-Line Arguments

However, note that it is not handled not by OS layer or shell (cmd.exe), but C runtime implementation specific, which can vary with compilers. In MSVC case, functions such as __getmainargs() or __wgetmainargs() are internally used.

cmd.exe also has it's own parsing rules. Double quote in cmd.exe has also special meaning for cmd.exe, therefore it can be confusing.
Escape character of cmd.exe is ^ (circumflex).