|Before we begin, we should probably establish a baseline.|
You should probably pick yourself up a script editor. I've heard good things about PowerShell Plus. As of v2, PowerShell comes with PowerShell ISE, and that's good enough for me.
I would recommend getting v3 of PowerShell. If you're running Win8.X, you already have v3. If you have Win7, you can download v3 free from MS at: http://www.microsoft.com/en-us/down....
v4's also available. I'm primarily in a mixed v2/v3 environment, but v4 should be backwards compatible with anything I come up with. http://www.microsoft.com/en-us/down...
Powershell can interact with 4 different environments, each of them have different rules and responsibilities. PS is built on and around .NET. As they say, you don't need to be a C# programmer to use PS, but it helps.
- Powershell's native is cmdlets. The focus is on PowerShell's object pipeline.
- Command line applications. A stream of text. What's permitted is dependent on if you're in the ISE or not. Programs that don't take keyboard input or have fancy text formatting are fine.
- .NET objects. The focus is on the objects, and you are responsible for the cleanup and fulfilling the object's requirements.
- Scriptable COM objects. The primary environment for VBScript. If you're just using COM, you're still probably better off using VBScript.
EDIT: PowerShell is a script engine that does not run scripts by default. Microsoft have softened on this view over the versions. However, you may attempt to run a script only to have PS say you cannot. It will point you to documentation on signing your scripts. There is an easier solution.
Set-ExecutionPolicy Unrestricted CurrentUser
I'll have to install VLC when I get a chance. The HTTP interface looks the most promising. Or at least we should be able to screen scrape with it. The process will require .NET object handling since PS doesn't have a cmdlet for websites.
Note we're only talking about doing this through VLC. The Internet is full of suggestions for media duration. None of them require VLC.
How To Ask Questions The Smart Way
message edited by Razor2.3