VSS integration tweaks

VSS integration tweaks

5
NewbieNewbie
5

    Sep 06, 2006#1

    Hi all,

    I have followed the tutorial in the forums here for using the command line to checkout and in files using vss. Almost works great except for one stumbling block.

    In my work environment, all files are located on a networked drive, which I map to a local drive and then open files from there, so typically a full working path for a file might read something like

    z:\projectA\http\myfile.html

    here's my problem, I want to check out this file but in the VSS client the project listing for this file follows a structure similar to

    $\projectA\http\myfile.html

    so using this command

    ss.exe checkout %p%n%e doesn't work since that assumes it is trying to checkout a file like this

    ss.exe checkout z:\projectA\http\myfile.html

    when infact it needs to be checking out a file like this

    ss.exe checkout $\projectA\http\myfile.html

    so my question is, is there any way to do a replace on the %p to remove the drive letter? or even any reference to say z:?

    Any help would be much appreciated!

    Cheers
    Mike

    6,681583
    Grand MasterGrand Master
    6,681583

      Sep 07, 2006#2

      There is no variable which presents the path without drive letter. The only idea I have is to run the VSS checkout tool via a macro, which first prepares the file path+name. Example:

      Command line of the tool: ss.exe checkout %sel%

      Macro:

      Clipboard 9
      CopyFilePath
      Save
      NewFile
      Paste
      Find Up "z:"
      Replace "$"
      SelectAll
      RunTool "Case-sensitive name of the tool"
      CloseFile NoSave
      ClearClipboard
      Clipboard 0

      The tool should not save the file anymore. The macro does this and must do it.
      Best regards from an UC/UE/UES for Windows user from Austria

      5
      NewbieNewbie
      5

        Sep 07, 2006#3

        Hi Mofi,

        Thanks for the neat idea, it sounds good in practice, however there is no function called CopyFilePath in my UltraEdit 32 v9, is this available in an upgraded version perhaps? Is there something equivalent in v9?

        Thanks again!

        Cheers

        6,681583
        Grand MasterGrand Master
        6,681583

          Sep 08, 2006#4

          According to readme.txt of v12.10a the macro command CopyFilePath is available since v9.20. Latest v9 version is v9.20b. As a registered user of UE v9 you can still get the latest v9 version for free. Your key will also work for v9.20b. Write an email to IDM support and request the installation package for v9.20b with or without dictionaries (don't forget to mention the language) with your registration name and your authorization code.

          Maybe it is also possible to replace CopyFilePath with the macro command Template x (x ... template number). But then you first must create the template with the full file name specification at Advanced - Display/Modify Templates. In your help of UE you will find the help for templates. The special template string you need here is [FULL_FILE_NAME]. I hope everything written in this paragraph really exists in your v9 version.
          Best regards from an UC/UE/UES for Windows user from Austria