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

I am not following you ikegami. Where would the quote need to be?
  • Comment on Re^5: Issues with dir names containing spaces-

Replies are listed 'Best First'.
Re^6: Issues with dir names containing spaces-
by ikegami (Patriarch) on Jul 23, 2009 at 16:30 UTC
    At the start and end of the argument, not start and middle
      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?