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, March 27, 2013

Windows start command

You need to start an application with spaces in its path - the answer is obvious right, put quotes round it?

start "C:\program files (x86)(stupid)\appname\app.exe"

Oh no. What start thinks you want there is to start no application at all, in a window with the title C:\program files (x86)(stupid)\appname\app.exe. Something I'm sure hundreds of users need to do every day.

start interprets the first quoted argument as a window title, so the way round this is to use

start "" "C:\program files (x86)(stupid)\appname\app.exe"

Followers

Blog Archive