in reply to Re^5: Issues with dir names containing spaces-
in thread Issues with dir names containing spaces-

At the start and end of the argument, not start and middle
  • Comment on Re^6: Issues with dir names containing spaces-

Replies are listed 'Best First'.
Re^7: Issues with dir names containing spaces-
by rickMan (Novice) on Jul 23, 2009 at 16:45 UTC
    No. If include the scalar file name with the quotes ('"$fileName"') then it will not recognize it as a variable and will use the name literally.

      Then don't do that. The quote still needs to be at the end of the arg.

      Wrong: "C:\Documents and Settings\my.name\My Documents\My Company\QA\"TestingWorksheet_07232009.xlsx
      Right: "C:\Documents and Settings\my.name\My Documents\My Company\QA\TestingWorksheet_07232009.xlsx"

      Are you saying you don't know how to build the latter string? By the way, why didn't use the multi-arg system call I suggested?

        If I quote it in such a way ("") then it will not recognize spaces within dir names... we've already been down that path.