Last active
August 29, 2015 13:59
-
-
Save pjmagee/10758794 to your computer and use it in GitHub Desktop.
LinqPad Script to enumerate all new shows and open vlc full screen with the playlist.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Query Kind="Statements" /> | |
| var files = new DirectoryInfo(@"\\diskstation\video\TV Shows") | |
| .EnumerateFiles("*.*", SearchOption.AllDirectories) | |
| .Where(f => f.Extension == ".mkv" || f.Extension == ".mp4" || f.Extension == ".avi") | |
| .Where(f => f.CreationTime.Date == DateTime.Today) | |
| .Select(f => "\"" + f.FullName + "\""); | |
| var arguments = string.Join(" ", files.Concat(new[] { "--fullscreen" })); | |
| var psi = new ProcessStartInfo(@"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe", arguments); | |
| Process.Start(psi); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment