News for hackers. Stuff that matters.
Re:Kinda like apt-get, but for Windows by niggler on Wednesday February 06, 2013 @01:29PM (#5177961)
When you write CLI apps in .NET, for example, handling paths with spaces is a mess (argv splits on " ", even if you wrap arguments in quotes, so "C:\Program Files (x86)" is seen as 3 tokens.
Re:Kinda like apt-get, but for Windows by ajanuary on Wednesday February 06, 2013 @02:04PM (#5178153)
Really?

    C:\Users\andrewj\Desktop>type test.cs
    public static class Test {
            public static void Main(string[] args) {
                    foreach (string arg in args) {
                            System.Console.WriteLine(arg);
                    }
            }
    }
    C:\Users\andrewj\Desktop>csc test.cs
    C:\Users\andrewj\Desktop>test.exe a b "C:\Program Files (x86)" d e
    a
    b
    C:\Program Files (x86)
    d
    e
Do you mean "language x" on .NET?
Re:Kinda like apt-get, but for Windows by niggler on Wednesday February 06, 2013 @04:24PM (#5178910)
VB.NET shows the behavior with

Class Test Public Shared Sub Main() Console.WriteLine("GetCommandLineArgs: {0}", String.Join(", ", Environment.GetCommandLineArgs())) End Sub End Class