WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

FileMenu

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Full FileNames To Clipboard

 Keywords:  Custom Menu Item FileMenu Clipboard Tricks FileNameShort Short File Name List

Here is a custom menu item for the FileMenu/Clipboard Tricks ...

The "all filetypes" menu adds additional menu choices to the context menu which appears when you right click on any file in an Explorer window, or on the desktop.

Right click on any file in Explorer. Select Edit File Menus / Edit menu for all filetypes

 Filepathnames (short) To Clipboard ; Copies filenames with full paths to the Clipboard (short names).
    For xx = 1 To 5
       highlighted_files = FileItemPath ("")
       If highlighted_files != "" Then Break
       TimeDelay (1)
    Next
    If highlighted_files == ""
       Message ("Error", "Filenames not placed on clipboard")
    Else
       highlighted_files = ItemSortNc (highlighted_files, @TAB)
       intLast = ItemCount (highlighted_files, @TAB)
       For intItem = 1 To intLast
          highlighted_files = ItemReplace (FileNameShort (ItemExtract (intItem, highlighted_files, @TAB)), intItem, highlighted_files, @TAB)
       Next
       highlighted_files = StrReplace (highlighted_files, @TAB, @CRLF)
       ClipPut (highlighted_files)
       Display (2, "Full (short) path file names placed on Clipboard", highlighted_files)
    EndIf
 

Article ID:   W17883
Filename:   Full FileNames To Clipboard.txt
File Created: 2013:01:18:13:36:44
Last Updated: 2013:01:18:13:36:44