Skip to content

Instantly share code, notes, and snippets.

@StephenFriend
Created September 27, 2014 07:30
Show Gist options
  • Save StephenFriend/593aa94366cd4733be46 to your computer and use it in GitHub Desktop.
Save StephenFriend/593aa94366cd4733be46 to your computer and use it in GitHub Desktop.
Simple console application to show how to escape file paths on OSX with vNext
using System;
using System.Diagnostics;
public class Program
{
public static void Main()
{
var filePath = "\"/Volumes/StorageHD/Audio/iTunes Music/Air/Talkie Walkie/01 Venus.mp3\"";
var p = new Process();
p.StartInfo.FileName = "/Applications/VLC.app/Contents/MacOS/VLC";
p.StartInfo.Arguments = filePath;
p.Start();
Console.ReadKey();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment