Created
September 27, 2014 07:30
-
-
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
This file contains 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
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