Menu

#81 allow for UNC paths when opening a Console

New
nobody
None
Medium
Enhancement
2009-09-14
2009-08-20
Anonymous
No

Originally created by: map...@gmail.com

What steps will reproduce the problem?
1. in Windows Explorer navigate to a unc path, e.g. \\server\share\folder
2. press Console button (or ctrl-m)

What is the expected output? What do you see instead?

The console window opens, but with C:\WINDOWS as the current directory and
the error:

   '\\server\share\folder'
   CMD.EXE was started with the above path as the current directory.
   UNC paths are not supported.  Defaulting to Windows directory.

What version of the product are you using? On what operating system?

StExBar 1.6.0.187 x64
Windows XP Pro x64 v2003 SP2

Please provide any additional information below.

If the PUSHD command were used before starting CMD.exe the UNC would mapped
to a temporary drive letter. For example:

   @echo off
   pushd \\server\share\folder
   cmd
   popd
   exit

PUSHD: http://ss64.com/nt/pushd.html

Discussion

  • Anonymous

    Anonymous - 2009-08-20

    Originally posted by: tortoisesvn

    Or better yet instead of trying to use pushd, just use the already existing code to
    find the mapped path for the UNC path and then start the cmd.exe for that.

    Labels: -Type-Defect Type-Enhancement
    Owner: tortoisesvn
    Status: Accepted

     
  • Anonymous

    Anonymous - 2009-08-20

    Originally posted by: map...@gmail.com

    Will that code still work in the case where there is not a drive letter mapped?

     
  • Anonymous

    Anonymous - 2009-09-14

    Originally posted by: tortoisesvn

    Ups - we only have a function to convert a local path to an UNC path, not the other
    way around. And the other way around isn't possible in a consistend way (you can have
    mapped a network share to multiple drive letters).

    Status: New

     
  • Anonymous

    Anonymous - 2009-09-14

    Originally posted by: tortoisesvn

    (No comment was entered for this change.)

    Owner: ---