Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Wednesday, April 14, 2010

C# command line arguments

Windows app - the array returned by Environment.GetCommandLineArgs has the executable filename as element 0, ie it is CommandLine split up into an array.

BUT

Console app - args[0] is the first argument, not the executable name. So args[] is like Perl's @ARGV, and different from Environment.GetCommandLineArgs and from C's argv[].

Followers

Blog Archive