Print file list to clipboard

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Captain
Junior Member
Junior Member
Posts: 25
Joined: 2005-11-23, 09:28 UTC
Location: Cape Town, South Africa

Print file list to clipboard

Post by *Captain »

Hi

Is there any way I can print a file list to a clipboard. I have a list of sql files that I want to run by listing them in another file and I want to simply copy the file list into the new file. Any ideas?

tx
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

these TC commands should help

Code: Select all

cm_CopyNamesToClip=2017;Copy filenames to clipboard
cm_CopyFullNamesToClip=2018;Copy names with full path
cm_CopyNetNamesToClip=2021;Copy names with UNC path
cm_CopySrcPathToClip=2029;Copy source path to clipboard
cm_CopyTrgPathToClip=2030;Copy target path to clipboard
You should asign a menu entry for each one of them and maybe a keyboard shortcut for easier access
TC for Linux please!
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

In menu File->Print->Filelist you can choose to print the list. If you only want to print into a file you'll have to install before manually a new Printer 'generic/text" and select instead of 'LTP1' just 'file' as connection for this printer.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Julio311
Junior Member
Junior Member
Posts: 5
Joined: 2005-03-04, 21:38 UTC
Location: Atlanta

Re: Print file list to clipboard

Post by *Julio311 »

1. Is there a command for "copy file list with size, date" et al to clipboard?
2. I've never figured out how to print to file so I can do something with it. I did like you said, "generic/txt" port: file but I always get a binary file. Is this an encoded format that I do not recognize or am I just doing it wrong?
Dan
--
Dan
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

You are doing probably something wrong.
  1. Install a new printer on your Computer 'Generic / Text only'
    • You should do this without Plug and paly but by selecting it manually
    • you should make sure that this generic Printer is not bound to LPT1 but to 'file'
  2. select all desired files/folders
  3. Select from menu File->Print->either 'Print filelist' or 'Print Filelist with Subdirs'
  4. Select the previous installed 'Generic / Text only' Printer
  5. After adjusting the page select print
  6. A dilaog box for typing in the name should appear.
  7. Choose a name with path and click on 'save'
When you open the file something like this:

Code: Select all

   E:\Beta1 6.5\ini\Administrator\

50-50.ini
Addon.bar
Addon.br1
Adminbars.tws
blue.bar
blue.br1
293 k in 6 files
should appear.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
chfaure
Junior Member
Junior Member
Posts: 5
Joined: 2004-09-14, 09:20 UTC

Post by *chfaure »

From the command line , i do :

Code: Select all

FOR /F %i IN ( 'dir /b *.sql' ) do @echo %i %~zi %z~di >>output.txt
If you want full path :

Code: Select all

FOR /F %i IN ( 'dir /b *.sql' ) do @echo %~fi %~zi %z~di >>output.txt
If you plan to do it from a button uppon a selected list of file, create a bat file such as doList.bat in TC Folder :

Code: Select all

@for /F %%i in ( 'type  %1' ) do @echo %%~fi %%~zi %%~ti >>%2
and add a button to your toolbar.with the dolist.bat as pgms and set %l as first parameter and any file you want for output file...
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Oh, if we come to that you can also use DiskDir Extended or DiskDIr where DisDirExtended prints also the Content of Archives in the List.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
schulzkeil
Junior Member
Junior Member
Posts: 6
Joined: 2005-04-30, 14:30 UTC

Diskdir

Post by *schulzkeil »

Thanks. Dikdirextended works very well
jhauff77060
Junior Member
Junior Member
Posts: 2
Joined: 2015-10-23, 14:12 UTC

Re: Print file list to clipboard

Post by *jhauff77060 »

Try TreeSize Pro (https:// www jam-software com/treesize)
1. TreeSize Pro allows the export of all files and folders and their details in a single row for each file, e.g., full path, size, last modified, etc.
(see example screen print below)
2. TreeSize Pro has a free fully-functional 30 day trial period.
3. TreeSize also offers a free version but I am not sure of it's limitations.

Example Screen Print - https:// drive.google.com/ file/d/1jIO99lgiTZdpgEPQTEhJKal286oc0i4u/view?usp=sharing





Direct link of the URLs disabled by Moderator
Post Reply