Skip to content

Instantly share code, notes, and snippets.

@pjmagee
Last active August 29, 2015 13:59
Show Gist options
  • Select an option

  • Save pjmagee/10758794 to your computer and use it in GitHub Desktop.

Select an option

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.
<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