powershell script to play a music folder on windows startup - windows

How to use powershell to autoplay a folder of mp3 files using Windows Media Player on Windows 7 startup. I figure that there are two aspects: 1) the script must run automatically when Windows starts up 2) the script must call Media Player to open the folder and play the files therein

Perhaps you could make a playlist from that folder in Windows Media Player.
Then you could call windows media player with a commandline switch, which tells it to open and play a certain playlist. You can find some information on commandline switches for WMP here:
[http://www.tech-recipes.com/rx/1389/windows-media-player-wmp-11-command-line-options/]
When that is done, you would create a scheduled job, to fire your WMP script every time you log on.
Information for that part can be found here:
[https://technet.microsoft.com/en-us/library/cc748993(v=ws.11).aspx]

Related

How to merge audio video file in mac system using action script?

I am creating a screen recording application using action script. I am able to record the screen and audio files separately but the issue i am facing is that i am not able to merge these audio and video files in Mac.
For windows version i have used the ffmpeg and it is working fine But for Mac system it is not working. Do you guys have any other suggestions or any way to run the ffmpeg from the action script directly for Mac ?

Looping windows programs in script

Scripting windows 7 I need to loop continously from a windows media player play list and when tje playlist is complete to a presentation and then back to the Playlist when the presentation is complete.

Microsoft Player Framework not playing local files

I am developing a windows 8 app in winjs and one of its features is to be able to play local video files. So far I am using:
Windows.System.Launcher.launchFileAsync
Which works fine but obviously suspends the app and opens the video with their default video program. I would rather keep the user in the app so I tried to implement it using the Microsoft Player Framework(http://playerframework.codeplex.com/). I know the framework is referenced correctly etc because it can play video files both in the 'app data' directory and online.
However when I try to play files within a folder that the user has picked (with the folder picker) or the videos library that the app has declared access to, the video fails to play. The app can however change the name, create new files in the directory and delete files so I struggle to see a permissions problem.
To get the path of the file I am using getFileAsync( and using the path property and simply using that to set the src property of the MediaPlayer control.
Do any windows 8 app gurus have any suggestions as to why it is not working?
Thanks in advance
p.s. let me know if any further info is required

Autolaunch exe on USB in windows XP SP3

I want to autolaunch my application on USB as soon as I plug it into a PC running on windows XP SP3. I have made an autorun.inf (having below written code) and also tried to lauch setup using a batch file(autorun.bat) but none of these seem to be working.
I have also read that a particular windows update (KB971029) disables the autorun/autoplay feature of USB. How can I overcome it? (I can't ask my client to uninstall a windows security update for using my product..)
Code Of autorun.inf file
[autorun]
UseAutoPlay=1
icon=setup.exe
Open=setup.exe
action="Start my application"
Label=setup
[Autoplay]
shellexecute=autorun.bat
Icon=setup.exe
My product contains some media (video) files too so on inserting the USB I get a pop up asking following options
1.) to open files in explorer
2.) play files using media player
3.) take no action
If autorun is disabled, you cannot use autorun. It's that simple.

WP7 emulator won't play mp4

I was wondering if the format is really supported. I am developing a simple WP7 application which contains a MediaElement such as the one shown bellow:
For the sake of testing, I subscribed for the MediaFailed event and it fires always.
If I try to open the file in the browser, it opens successfully. If I put the same MediaElement in a regular SL application - it runs. If I give some .wmv file to the MediaElement in the WP7 app - it runs. (http://files.ch9.ms/ch9/5baa/ea2aeba2-9dcc-4565-942a-9e6101655baa/DevKid_ch9.wmv).
Got any ideas?
One thing to watch is that video won't play if you're connected using USB to the Zune software.
I just tried your video using this IronRuby script - it plays fine.
For more help, you can check out the Channel9 application on codeplex - that works well.
Windows Phone 7 supports the MP4 container, but only supports a certain set of codecs. I believe this list is a pretty accurate list of what's supported.
It seems that you can't play mp4 files when Zune is running. However, you can still debug your application by connecting to your phone using WPConnect.exe which by default is installed to C:\Program Files\Microsoft SDKs\Windows Phone\v7.0\Tools\WPConnect. You'll need to close Zune before running WPConnect, but after you have run it, you should be able to F5 in Visual Studio and the the debugger running your code on the phone.
One other thing to keep in mind is that Windows Phone 7 requires the file (or URL) extension to match with the codec, so for mp4 files you need to have file name ending with .mp4, otherwise it won't play.

Resources