Export folder-structure to HTML?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Export folder-structure to HTML?

Post by *Peter »

Is there a tool inside TC that can export folder structure to HTML?
(Example: Image: http://www.sitefinity.com/documentation/sf-images/designers-guide/file-structure.jpg)

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can use any desired tool, TC can't do this.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

PowerShell: output dir scan as HTML

Post by *Stefan2 »

[face=timesnewroman]EDIT: Sorry, I missed the "structure" part :wink:
But that should be possible also with an more advanced script.
[/face]
------------------------------


Maybe utilize PowerShell?

Code: Select all

TOTALCMD#BAR#DATA
powershell.exe
"Get-ChildItem %P -Recurse | Select-Object FullName, Length, CreationTime | ConvertTo-Html | Out-File c:\temp\_htmlTEST.htm"
%Commander_Path%\WCMICONS.DLL,4



-1

More info:
http://technet.microsoft.com/en-us/library/ee156817.aspx
http://technet.microsoft.com/en-us/library/ff730936.aspx
The entire script looks like this:

$a = "<style>"
$a += "BODY{background-color:peachpuff;}"
$a += "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}"
$a += "TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:thistle}"
$a += "TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:PaleGoldenrod}"
$a += "</style>"

Get-Service | Select-Object Status, Name, DisplayName |
ConvertTo-HTML -head $a -body "<H2>Service Information</H2>" |
Out-File C:\Scripts\Test.htm

- - -

Note:
"%P" is a Total Commander parameter, used in the PowerShell script as argument for the path to scan.



You can also shorten the PowerShell script by utilizing aliases and abbreviations:
"gci %P -Re | Select FullName, Length, CreationTime | ConvertTo-Html | Out-File c:\temp\_htmlTEST.htm"


You may want to use the TC parameter "?" to be prompted before actual executing:
?"gci %P -Re | Select FullName, Length, CreationTime | ConvertTo-Html | Out-File c:\temp\_XXX.htm"

Then you be able to change the name for the output file "on the fly".



- - -


An dedicated third-party tool which creates much more feature-rich HTML is e.g. >> http://www.rlvision.com/snap2html/about.asp


.
Post Reply