The Report tab in the info panel creates a list of file for the current directory.
It would also be good to be able to add prefix and suffix text to each line, for example if I just need a lit fo files with start and end delimiters, i.e. to be used in a BAT file or a programming language.
I know that I can could create a custom column which includes this text, but a) that is not so easy to do ab b) the text cannot be changed quickly.
Report - for directory
-
Julian
- Posts: 48
- Joined: 16 Dec 2022 08:24
Report - for directory
You do not have the required permissions to view the files attached to this post.
-
jupe
- Posts: 3446
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: Report - for directory
Well you can create custom reports with a simple scripting command, lookup report() in the Advanced Topics Scripting Commands Reference.
-
Julian
- Posts: 48
- Joined: 16 Dec 2022 08:24
Re: Report - for directory
Thank You, that is a good tip.
I created a script and put it in the catalog. It is supposed to create a BAT file to use robocopy to copy the selected directories to a different drive.
I just wonder how to enable a "Save as" button on the dialog displayed by text() - or is there a different dialog available? I do not really want to save directly to a file.
This is my script:
I created a script and put it in the catalog. It is supposed to create a BAT file to use robocopy to copy the selected directories to a different drive.
I just wonder how to enable a "Save as" button on the dialog displayed by text() - or is there a different dialog available? I do not really want to save directly to a file.
This is my script:
Code: Select all
::$dest = input("Create robocopy script","Enter destination drive/dir", "Z:\", e, "" ); text report( "robocopy /E ""{name}"" ""$dest{name}"" <crlf>" , 1, "echo Start robocopy to copy to $dest?<crlf>Pause<crlf><crlf><crlf>", "pause<crlf>" ), "Robocopy Batch commands"; -
highend
- Posts: 14925
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Report - for directory
There is no save as... button for
Use e.g.
If true, use
textUse e.g.
confirm after displaying the text and ask if you want to save that file.If true, use
outputfile & writefile...One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club