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

Hello Monks,
well, I am still having issues with this script I am trying to write. The double quotes following the 'QA' in the output I believe is responsible for not allowing excel to find the dynamically created file thus generating a file not found error... any suggestions on the matter? Here is a snippet of the script:

my $app = '"C:\Program Files\Microsoft Office\Office12\excel.exe"'; my $arg = '"C:\Documents and Settings\my.name\My Documents\My Company\ +QA\"' . $newFilename; #system("$app $arg"); print $app . "\n"; print $arg;

My output = "C:\Program Files\Microsoft Office\Office12\excel.exe" "C:\Documents and Settings\my.name\My Documents\My Company\QA\"TestingWorksheet_07232009.xlsx

Replies are listed 'Best First'.
Re^4: Issues with dir names containing spaces-
by ikegami (Patriarch) on Jul 23, 2009 at 15:06 UTC
    Your quote is misplaced for your arg
      I am not following you ikegami. Where would the quote need to be?
        At the start and end of the argument, not start and middle