ZTree.com  | ZEN  | About...  

 Index   Back

[Discuss/Bug]Renaming in sHortcut   [Discuss]

By: Juergen Hestermann       
Date: Aug 17,2003 at 01:03
In Response to: [Discuss/Bug]Renaming in sHortcut (Walter Rassbach)

> If one tags a set of files and uses ctrl-sHortcut, there is no rename mask
> available in the prompt, and the created shortcuts are named with the same
> filename with the file extension stripped and replace with
> "lnk". That is probably the right default, but it works very
> badly when there are groups of files named xyz.TXT, xyx.DOC, xyz.PDF, etc.
> There is no way to indicate that both the name and extension should be
> kept and the .lnk added (rather than replacing the old extension).

If I think it over, the 'create shortcut' function should be more like a Ctrl/Alt+Copy_shortcut function, where the user has the same flexibility as he has in Ctrl/Alt+Copy:

Ctrl+sHortcut:
--------------
1.) Ask for rename mask how the shortcut names should be created from the original names. I even think that the .LNK should be appended as default instead of replacing the extension because some files may have a period but no extension in which case the shortcut names would be garbled. So '*.*' would be a good default. To remove (replace) the extension a '*.' mask will do.

2.) Ask for target directory: Same as now for Ctrl+sHortcut because all shortcuts would end up in one directory.

3.) Replace existing files (shortcuts): Yes No Older neVer

Alt+sHortcut:
-------------
1.) Same as for Ctrl+sHortcut.

2.) Again same as for Ctrl+sHortcut.

3.) Ask for Source: Paths are (full) Full Curr Rel

4.) Same as 3.) for Ctrl+sHortcut.

Then you would be able to create a full directory structure on another drive (or directory) which only contains shortcuts to the original files with individual naming capabilities.

But I think this has to wait a little while because of the imminient new release.

> This brings to light a slightly different problem with the rename logic:
> Occasionally, one wants to change a file named abc.xyz to something like
> abc_xyz.PQR. There is no way of calling out the extension part of the
> original filename in the name part of the rename mask.

As long as there is only one period in the file name that's quite easy to do:

"."_"x|*.*<.PQR>

Unfortunately, we can limit the number of replacements *from the left* but not from the right. So we cannot achieve the same result in case there are more then one period in the file name and if only the most right should be replaced.

Jürgen.

692 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 64 users online (1 registered, 63 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 1:40 pm UTC  |  Hits:62,407,799  (22,585 Today )
RSS Feed