VSS integration tweaks

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

VSS integration tweaks

Postby mkleiman » Wed Sep 06, 2006 6:09 pm

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
User avatar
mkleiman
Newbie
 
Posts: 5
Joined: Sun Apr 09, 2006 11:00 pm

Re: VSS integration tweaks

Postby Mofi » Thu Sep 07, 2006 8:34 am

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.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: VSS integration tweaks

Postby mkleiman » Thu Sep 07, 2006 4:33 pm

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
User avatar
mkleiman
Newbie
 
Posts: 5
Joined: Sun Apr 09, 2006 11:00 pm

Re: VSS integration tweaks

Postby Mofi » Fri Sep 08, 2006 1:07 pm

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.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Custom User Tools/Tool Configuration