Export to CSV using jQuery and HTML

Demo See below for an explanation. $(document).ready(function() { function exportTableToCSV($table, filename) { var $rows = $table.find(‘tr:has(td)’), // Temporary delimiter characters unlikely to be typed by keyboard // This is to avoid accidentally splitting the actual contents tmpColDelim = String.fromCharCode(11), // vertical tab character tmpRowDelim = String.fromCharCode(0), // null character // actual delimiter characters for CSV … Read more

Create objects with custom properties containing derived filesystem path information and export them to a CSV – calculated properties

The [System.IO.FileInfo] instances returned by Get-ChildItem for files do not have Folder or FolderName properties. Get-ChildItem -File $HOME\Desktop | Get-Member, for instance, will show you the available properties, and will show you that the desired information can be derived from the PSPath and PSParentPath properties. Select-Object allows hashtable-based property definitions, so-called calculated properties, which allow … Read more