Command-line mp3 tagger and file renamer programs
I've been looking around and haven't come across a command-line program to edit mp3 tags and rename files based on those tags. Any suggestions?
Have a look at http://home.gna.org/lltag/ - it's in the AUR: https://aur.archlinux.org/packages/lltag/
Similar Messages
-
Setting IIS W3C Extended Log File settings via command line, registry or configuration file
I am currently in need of a way to set IIS W3C Extended Log File settings via command line, registry or configuration file. More specifically the 'Bytes Sent (sc-bytes)' and 'Bytes Received (cs-bytes)' settings that are not enabled by default.
If anyone knows where I can locate these setting (outside of the GUI) for all IIS versions that would be greatly appreciated.I believe I have found a valid solution. You must have the WebAdministration module loaded. I hope this helps someone.
Use the following syntax to view current W3C fields:
Get-WebConfiguration -filter system.applicationhost/sites/sitedefaults/logfile | select-object -expandProperty logExtFileFlags
Use the following syntax to set W3C fields:
Set-WebConfigurationProperty -Filter System.Applicationhost/Sites/SiteDefaults/logfile -Name LogExtFileFlags -Value "Date,Time,ClientIP,UserName,SiteName,ComputerName,ServerIP,Method,UriStem,UriQuery,HttpStatus,Win32Status,BytesSent,BytesRecv,TimeTaken,ServerPort,UserAgent,Cookie,Referer,ProtocolVersion,Host,HttpSubStatus"} -
Pass the command line argument (argc and argv) to a LabVIEW built shared library.
Hello,
I have successully use this trick to build a LabVIEW application that runs on Linux without X Display.
http://digital.ni.com/public.nsf/allkb/5D6EC36DCF43343786257449006919E6
I'd like to know if it's possible to pass the command line arguments ( ./TEST A B C D) directly into the shared library without having to pass the arguments using a array of strings which would require to write code using DSNewHandle, DSSetHandleSize, extract the arguments and ..... (I'm not proficient in C, but if I don't have a choice I will do it and improve my C skills).
int main(int argc, char *argv[])
Test(argc, argv);
return 0;
Thanks,
Michel
Solved!
Go to Solution.Well, you can always flatten it back into a space separated single string and pass it like that. Basically reverse what the OS does when it calls your main function with the command line parameters. And while the first element in the array is always the program name itself you can just skip that here, but then format all the rest into a single string.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Capturing command line output to a file possible?
Hi, i am in need of capturing the command line output to a txt file and need some suggestions on how to do it.
I have two classes, class A is the one with all the methods and outputs text to the command line (using System.out.print). class B is the one that calls the methods and needs to record the command line output to a file.
Now the problem i face is not all the output is going to be written to a file and not all the output is going to be displayed on the command line. eg. class B will have a way to select the output mode which is either both to a file and command line or just to a file and display nothing on the command line.
Is what i am asking even possible? Any suggestions would be great!Here is a class I found on the forum that does basically what you need. Just change the code that is updating a Document to write to a file:
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.*;
public class ConsoleOutputStream extends OutputStream
private Document document = null;
private ByteArrayOutputStream outputStream = new ByteArrayOutputStream(256);
private PrintStream ps = null;
public ConsoleOutputStream(Document document, PrintStream ps)
this.document = document;
this.ps = ps;
public void write(int b)
outputStream.write (b);
public void flush() throws IOException
super.flush();
try
if (document != null)
document.insertString (document.getLength (),
new String (outputStream.toByteArray ()), null);
if (ps != null)
ps.write (outputStream.toByteArray ());
outputStream.reset ();
catch(Exception e) {}
public static void main(String[] args)
JTextArea textArea = new JTextArea();
JScrollPane scrollPane = new JScrollPane( textArea );
JFrame frame = new JFrame("Redirect Output");
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.getContentPane().add( scrollPane );
frame.setSize(300, 600);
frame.setVisible(true);
System.setOut( new PrintStream(
new ConsoleOutputStream (textArea.getDocument (), System.out), true));
System.setErr( new PrintStream(
new ConsoleOutputStream (textArea.getDocument (), null), true));
Timer timer = new Timer(1000, new ActionListener()
public void actionPerformed(ActionEvent e)
System.out.println( new java.util.Date().toString() );
System.err.println( System.currentTimeMillis() );
timer.start();
} -
Running mxmlc from command line - unable to open file
Hello all,
Just tried to get Flex up and running - but have run into
probably a simple problem. Here's the scenario:
1. I've put the flex 2.0 installation folder on my C drive
such that the path is c:\flex_sdk_2
2. I've set my system path to reference the the mxmlc with
c:\flex_sdk_2\bin
3. I've set up a folder on my desktop for my flex programs,
creatively called 'flex'
4. From my command line I use 'xmxlc --strict=true
--file-specs filename.mxml'
My output is this:
Loading configuration file <etc>
Error: unable to open filename.mxml
As I said before, probably an easy fix but thought I'd put
something up to see if anybody knew an answer off the top of their
head? I'm running Windows XP. Home Edition, V. 2002 if it helps.
Many thanks!
ShannanNevermind, figured it out. My files had the .txt appended to
the end of the file-name.
*der* -
Hi
I’m upgrading our SSIS packages from SQL 2005 to SQL 2012 .
Everything is working fine in Visual Studio, but when I’m submitting dtexec.exe it’s finishing right away in the command line (the actual execution takes long time).
It looks to me that as the return code doesn’t pass properly.
As I have depending tasks how I can make sure all jobs will be executed in the proper order.
(We never had this issue in SQL 2005)
C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn>dtexec.exe /ISSERVER "\"\SSISDB\Direct_Prod\Direct_SSIS_Package
\DD_Load_Customer.dtsx\"" /SERVER TORSQLSIS01 /ENVREFERENCE 2
Microsoft (R) SQL Server Execute Package Utility
Version 11.0.2100.60 for 32-bit
Copyright (C) Microsoft Corporation. All rights reserved.
Started: 10:21:55 AM
Execution ID: 21138.
To view the details for the execution, right-click on the Integration Services Catalog, and open the [All Executions] report
Started: 10:21:55 AM
Finished: 10:21:56 AM
Elapsed: 0.766 secondsAs per MSDN /ENVREFERENCE argument is used only by SQL Server Agent
see
https://msdn.microsoft.com/en-us/library/hh231187.aspx
below part is what it says
/Env[Reference] environment reference ID
(Optional). Specifies the environment reference (ID) that is used by the package execution, for a package that is deployed to the Integration Services server. The parameters configured to bind
to variables will use the values of the variables that are contained in the environment.
You use /Env[Reference] option together with the /ISServer and the /Server options.
This parameter is used by SQL Server Agent.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Include command line args in jar file
If I make and executable jar file, how can I make it so that when it runs certain comman line arguments are included
If by "executable jar" you mean that you want to click the jar and run the program (and are using Windows), then you would have to alter the Windows file association for jar files that Java created, adding those options to the javaw command. Note that that would affect all jars that are run this was.
If you're willing to use the "javaw -jar" command, then just add the options to the javaw command. -
I have a library that I need to compile for Solaris 10 x86 using Sun Studio. I compile the source files to make obj files by issuing the command:
Bash-3.0# cc -c -D"_UNIX_" *.c
This compiles every source.c and produces an object.o file. (Nice, & simple.)
Now, what is the command-line to combine all those object.o files (along with a few other staticlibs.a) and make one archive, lib.a?
I've done this many times with the gnu - gcc compilers. Is it possible with the Sun Studio Tools? And where is it documented?
I thought I had this 'licked' when installed SS12u1 and built the 'Welcome' project. But I have searched the "Sun Studio 12: C User's Guide" from top to bottom, and I don't have a 'clue' :-( ...
Mike <><><>Run the command
man arto get the details of using ar.
If you create an archive library newly each time (instead of trying to update an existing library), this command will do the job:
ar -r myarchive.a file1.o file2.o file3.o ... I recommend building the archive freshly each time instead of trying to update an existing archive. You can get unpleasant surprises when trying to update.
To link an archive into a program, just put the archive name on the linking command line (with a -L option to point to the directory if appropriate). The position of the archive on the command line matters. The linker scans the archive as it processes command-line options in order. It pulls a .o from the archive only if it has already seen a reference to a symbol that is defined in the archive. Therefore, the archive must follow all files and other libraries that reference the contents of the archive. Example:
Suppose f1.o uses something from archive.a, and all files are in the same directrory. This command will work:
cc -o myprog main.o f1.o archive.a This command will not work:
cc -o myprog main.o archive.a f1.o The reference in f1.o will not be satisfied. -
Running from a command line with a .bat file
I am running my program through a .bat file.
The .bat file looks as follows:
java ../classes/HelloWorld
The .bat file is in a directory at the same level as classes so to get to the class file to run I specify this path. However, it cannot find the class file unless it is in the same directory as the .bat file. Is there a way around this?hi,
as you could have known from the documentation, the java virtual machine executable 'java' expects a fully qualified class name as parameter, no file path. so 'java ../classes/HelloWorld' is of course completely wrong, it should be 'java HelloWorld' and nothing else. if you want to specify a certain path where the class file is to be found, use the -classpath command line option as in 'java -classpath ../classes/ HelloWorld'.
sincerely, Michael -
Command line to push exe files
I want to push microsoft updates and exe files using SCCM 2012 R2
What is the command line please do guide me
wusa.exe "Windows6.1-KB2729094-v2-x86.msu" /q /norestart
wusa.exe "NET Framework 4.0.exe" /q /norestart
or
"Windows6.1-KB2729094-v2-x86.msu" /q /norestart
"NET Framework 4.0.exe" /q /norestart
or
Windows6.1-KB2729094-v2-x86.msu /q /norestart
NET Framework 4.0.exe /q /norestartwusa.exe "Windows6.1-KB2729094-v2-x86.msu" /quiet /norestart
and
"NET Framework 4.0.exe" /q /norestart
but there are variations etc see:
http://stealthpuppy.com/installing-microsoft-update-standalone-packages-silently/
and
http://msdn.microsoft.com/en-us/library/vstudio/ee390831(v=vs.100).aspx
Best thing to do is create your packages and test your programs prior to deployment to production computers.
Here is a script by Jorgen Nilsson which allows you string multiple MSU's together using a wrapper:
http://ccmexec.com/2012/02/installing-multiple-windows-7-hotfixes-msu-with-sccm/ -
JAVA command line options -cp and -jar don't work together?
Running JSDK 1.4.2 under Windows. I have a Java application that tries to dynamically load a class name that the user enters as follows:
try {
classResult = java.lang.Class.forName(strFilterName);
catch (ExceptionInInitializerError e) {
strErrorMessage = "ExceptionInInitializerError loading class: " + strFilterName;
catch (LinkageError e) {
strErrorMessage = "LinkageError loading class: " + strFilterName;
catch (ClassNotFoundException e) {
strErrorMessage = "ClassNotFoundException loading class: " + strFilterName;
This works fine if the classes that make up my application are left as class files in the classpath, but fails to work if they have been collected and run from a JAR file. Note: I can even dynamically load the class when running from the JAR file, if the class I'm trying to load is within that JAR file too. The problem really occurrs when the dynamically loaded class is located someplace else in my classpath. I've tried using various combinations of the "-cp" and "-jar" Java command line options - but when loading and running from a JAR file - the "-cp" parameters seem to be ignored. Is this a bug? Has anyone ever seen this before?
I run my program from the JAR file using this command:
java -cp .;e:\entmgr\filters -jar EntMgr.jar
Where "e:\entmgr\filters" is where the class I'm trying to dynamically load is. (This class has no package name, but loads perfectly as long as I'm not running the application from the JAR file). The class name specified by the user has to be fully specified with a package name (if it has one).
I have tried forcing the "java.lang.Class.forName(strFilterName);" call to use the system class loader, the parent of the system class loaded, and even the null bootstrap class loader - all with no success.
I am suspecting that the class loader that is loading and running my main program from the JAR file, is just not paying any attention to the "-cp" parameter when the "-jar" parameter is present. Indeed, I have never seen any change in the failure, no matter what I put in the "-cp" parameter when using the JAR file.
When I run this without using the JAR file, here is the command I execute:
java -cp .;davidp\snmp;filters davidp.snmp.EntMgr
Where this is executed in a directory that has a "filters" and "davidp\snmp" directory. In this case, because the "filters" directory is in my class path - I can dynamically load my class from it using just its simple name (i.e. "TestTrapFilter").
So, is there some bug that precludes the "-cp" parameter from working correctly when the "-jar" parameter is used? Is there some other way to initialize or set up the classloader I'm using, so it can find things outside of the JAR file I'm running from? I would hope that it is possible to get the same behavior from my program, no matter if it is run from a JAR file or not.
Thanks for any assistence!
DaveThese posts are pretty old, but this page came up in a google search while I was having the same problem, so I thought I would throw my own (Later found) solution in.
The -cp and -jar options did not work together for me, but I later learned that they didn't really have to (and you don't have to mess with jar manifest files).
While on the command line, if you want to set a specific class path and also run a jar, all you need to do is add the jar to whatever extra class path you need to use in the -cp <arg>, and then specify which class you want run from inside the jar.
IE:
java -cp <YourSpecialClasspath>: <PathToJar> <ClassToRunInsideOfJar>
in my case it was like:
java -cp /home/user/WebRCP.jar:./StandaloneInstaller.jar InstallLoader
Remember to put a ":" in between the two arguments for the class path (-cp).
Hope this helps someone in the future,
-Josh -
Command line options in Jar files?
Can I set a command line option in the manifest of my jar file so that when it is double clicked it will invoke the JVM with my command line option??
Trying to pass to the JVM, not my code.I see.
Actually I wish sun would just fix the dang option towork
as it should and not need to be on the commandline...
And that won't happen.
Your presumption is that the manifest could somehow do
the command line options. But by the time the
manifest and jar file is read, the JVM is already
running and fully functional. Most of the
functionality that you see in the jvm is actually
implemented by other java classes. So the JVM has to
be running before it can do anything.
With sun jdk 1.3 a hello world program loads 180+
classes. This is not pre-loading but rather load on
demand, it needs all of those classes to load, resolve
and run the hello world program.
Actually I am aware of the classes which implement this functionality. It would be VERY easy for sun to empty the connection cache, they just choose to not let us do it for whatever bonehead reason. ANYONE who uses an internet inabled java application/applet will have this issue. Is java supposedly internet friendly?
Just try it. unplug your internet, use a java application to try and connect to some URL (telnet, ftp, whatever). Plugin your internet connection and see that you will not be able to connect untill you restart your app.
Crazy. This should be implemented. Its got 2 be a bug. they dont even tell you its command line only... -
Access via command line to the data files for Address Book
Snow Leopard Server 10.6.8
Mac Mini 2.66 GHZ Intel Core 2 Duo 4 GB 1067 MHZ DDR3
I rolled back from Mountain Lion Server to Snow Leopard Server because I needed mySql. At the time I was under AppleCare and they walked me through the steps. However, I ended up with Address Book issues.
Addressbook user on the Snow Leopard Server was upgraded to Mountain Lion Server. During the rollback process, the Apple tech had me delete the Addressbook user.
When we finished the rollback, he had me recreate the Addressbook user, but now it is linked to a new, empty data file. I cannot add new contacts nor edit or delete them. So I need to use the command line to view both data store files, find the one that has my data in it and re-attach it to my new Addressbook user.
Can someone help me with the Command Line commands?
Thank you,
CailynHi,
There are a couple of more advanced solution I can think of and I'm actually working on one myself.
* You can create your own jnlp client that allows you to pass in arguments. That sounds harder than it easy. Building a stripped down jnlp client (e.g. no installer, no applets) using one of the two open-source client as a start takes probably just a couple of days and should be sufficient for in house usage.
* Another solution is what I'm working on now. You can wrap your own executable around javaws that takes your passed in arguments plus jnlp href and looks up the original in the cache and adds a new one to the cache that it passes on to javaws and suddenly everything works as it should. The magic will be revealed at http://www.geocities.com/vamp201
- Gerald Bauer -
Acroread command line issue nUp and a custom page size
When I use the dialog box with the settings I need - It works fine..
Using acroread 9.5.5 on a Linux box.
Does not work in command line with -toPostScript -nUp 6 4 0 -size=1296x1440 -pairs <file_name>.pdf <out_file_name>.ps
If I choose size=legal or size=tabloid the resulting ps has reduced size pages and does flow correctly but
I want to use Large Paper 18"x20" and not downsize the original PDF input files.
Basically placing the images side by sideWere you ever able to get it to print on large paper? I'm facing a similar issue. A pdf with page size 11x17 but when I run it thru acroread it changes the page size to 8.5x11.
-
I have a Robohelp 11 HTML project which uses merged CHM files. I have a help build script which compiles this project using the RH command-line utility. Whenever this runs, RH overwrites the names of the merged CHM files in the .hhp file to use absolute paths (even if the .hhp file is read-only!). I've searched Adobe forums and this appears to be a RH bug. In my case, it doesn't stop the project performing the merge, but it looks like it causes problems when searching the resultant parent CHM (topics matching the search simply don't show up in child projects), as the search cannot necessarily find the merged files referenced in the .hhp when someone performs the search on a different machine. I notice that if I compile via the RH UI, the .hhp entries are not overwritten. So, a workaround is to do the build manually. However, we'd like to automate our help build. Is there any way to prevent the command-line compiler overwriting the merge file entries in the .hhp?
This was a problem with Rh9, see Item 13 at Using RoboHelp 9
I haven't seen it reported since but maybe something at that link will help.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge
Maybe you are looking for
-
I purchased an album on itunes and everything was fine. Then when I reconnected my ipod and it did some autosync (which I have it set up to do manual sync) it added every single song a second time, but apparently they are some sort of internet file,
-
Can I use my Mid 2012 13" MacBook Pro to drive two displays?
I have a Mid 2012 13" MacBook Pro (NOT Retina - I wanted the optical drive...) connected to a 27" Thunderbolt Display. If I get a MiniDisplay Port <-> MiniDisplay Port Cable (and connect it between the Thunderbolt Port on the Thunderbolt Display, and
-
Processing LONG RAW in the trigger
I'm currently using Oracle 7.3.4.x. I'd like to perform in the update trigger of LONG RAW column the copy of that value to another table. Since the :new and :old is prohibited in triggers and you cannot defined variables as LONG RAW data type in the
-
Unable to set up printer when installing drivers.
My office uses a HP Deskjet 4620 wireless printer. And we just ot a new computer, so we tried to connect the printer to the computer via wireless. The computer was able to detect the printer in Device and Printers. And it shows up in the Devices and
-
Not able to display document at sost transaction
I am sending a mail by using the function module SO_NEW_DOCUMENT_ATT_SEND_API1. Initially I was able to see the document at SOST transaction. But now I am not able to display the document even though I had not done any changes in the program.