Author Topic: Problem with filenames on console command line?  (Read 2970 times)

Wanderer

  • Senior Community Member
  • Posts: 557
  • Hero Points: 23
Problem with filenames on console command line?
« on: August 30, 2011, 05:15:15 PM »
SlickEdit 2011 (v16.0.1.0 64-bit)
Build Date: July 15, 2011
Emulation: Vim
OS: Windows 7 x64
OS Version: 6.01.7601  Service Pack 1
Project Type: No project open
Language: .config (XML)

When I try to start SlickEdit like this:
[C:\temp]
"C:\Program Files\SlickEditV16.0.1 x64\win\vs.exe"  .\proj\Proj.Web\Log4net.config .\proj\Proj.Service\Log4net.config .\References\Log4Net\log4net.config

Only the first file is opened, and there is an error popup about "File not found".
All paths and files exist.
It seems this behavior is new, since I used to open files into SlickEdit all the time by putting multiple filenames on the command line.

Any idea why this  isn't working?
Thanks --

chrisant

  • Senior Community Member
  • Posts: 1410
  • Hero Points: 131
Re: Problem with filenames on console command line?
« Reply #1 on: August 30, 2011, 08:01:04 PM »
Quote from: Wanderer link=topic=7245.msg30836#msg30836
Any idea why this  isn't working?
FWIW, possible cause:  They're all relative paths.  Most likely SE has changed the current working directory after loading the first file but before loading the second file.  Probably related to the "Set current directory when switching buffers" setting.

Wanderer

  • Senior Community Member
  • Posts: 557
  • Hero Points: 23
Re: Problem with filenames on console command line?
« Reply #2 on: August 30, 2011, 08:09:29 PM »
Good insight, sounds likely.  I'll use fully qualified filenames from now on.
Thanks for the reply.

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Problem with filenames on console command line?
« Reply #3 on: August 30, 2011, 09:22:00 PM »
Hi guys, I already tried the scenario with rel.paths with and without the option 'change dir when switching buffers' being set.
It worked for me and also for both cases when launching a new instance resp. open in the existing one ???
HS2