Author Topic: opening files with path specified  (Read 4349 times)

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
opening files with path specified
« on: December 16, 2009, 01:06:01 AM »
If I hit escape and then type 'e' followed by part of a file name in the command line a box pops up with a list of files that matches the name I have typed.  SE usually shows multiple versions of the same file -- one without a path and one with.  If I use the up/down arrows to select a file without a path, it opens fine.  But if I select one with a path name, SE seems to get confused by the spaces in the path name and tries to open up files that do not exist.  For example, if the file I select is C:\Documents and Settings\something, SE creates and opens files named "C:\Documents" and "and".  This is not the behavior I would have expected.  Is this a bug or am I doing something wrong?

I am running SE 14.0.2.2 on Windows XP.


ScottW, VP of Dev

  • Senior Community Member
  • Posts: 1471
  • Hero Points: 64
Re: opening files with path specified
« Reply #1 on: December 16, 2009, 04:21:49 PM »
When I tried that, the completions that had spaces in the path were surrounded by quotes (see picture). The e command expects that the next argument is a filename or path. If the path contains spaces and is not surrounded by quotes, then part of the path is interpreted as the next argument.

I tested on the same version and platform.

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
Re: opening files with path specified
« Reply #2 on: December 16, 2009, 05:00:34 PM »
Well, for some reason on my system SE does not include the quotation marks around the file name if the path has blanks.  Interestingly, when it shows a file name that has blanks in it, but without a path, it does put the quotation marks around it.  Oh well, it's not that big a deal.  I'll just have to avoid picking the names with paths.