I wish to write a PowerShell script using AudioGenie but I am not able to get it to run library commands.
I have to Add-Type tried both the C# and .NET wrappers, which appears successful, but can not run any commands from the library.
I have copied the .dll to the working folder, the SysWOW64 folder, and the system32 folder.
My output is below.
C#
PS C:\AudioGenie> Add-Type -path ".\AudioGenie2.cs"
PS C:\AudioGenie> AudioGenie2.AUDIOAnalyzeFile("test.mp3")
The term 'AudioGenie2.AUDIOAnalyzeFile' is not recognized as the name of a cmdlet, function, script file, or operable p
rogram. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:29
+ AudioGenie2.AUDIOAnalyzeFile <<<< ("test.mp3")
+ CategoryInfo : ObjectNotFound: (AudioGenie2.AUDIOAnalyzeFile:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
.NET
PS C:\AudioGenie> Add-Type -path ".\audiogenie3.vb"
PS C:\AudioGenie> AudioGenie.AUDIOAnalyzeFile("test.mp3")
The term 'AudioGenie.AUDIOAnalyzeFile' is not recognized as the name of a cmdlet, function, script file, or operable pr
ogram. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:29
+ AudioGenie.AUDIOAnalyzeFile <<<< ("test.mp3")
+ CategoryInfo : ObjectNotFound: (AudioGenie.AUDIOAnalyzeFile:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
How do I get AudioGenie to work with PowerShell?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok I have got a little further, but still struggling here. Any help would be appreciated.
The C# wrapper has been loaded as above, & I can run some AudioGenie commands without error, but it is not behaving as I would expect, and not accepting any input files. See the snippet below.
I wish to write a PowerShell script using AudioGenie but I am not able to get it to run library commands.
I have to Add-Type tried both the C# and .NET wrappers, which appears successful, but can not run any commands from the library.
I have copied the .dll to the working folder, the SysWOW64 folder, and the system32 folder.
My output is below.
C#
.NET
How do I get AudioGenie to work with PowerShell?
Ok I have got a little further, but still struggling here. Any help would be appreciated.
The C# wrapper has been loaded as above, & I can run some AudioGenie commands without error, but it is not behaving as I would expect, and not accepting any input files. See the snippet below.
Ok, great, thanks for the lesson.
I've got it cracked now!