Forums
For updating folder dates, the utility "FolderTimeUpdate" can be used (developed by NirSoft).
Search-words: bat cmd batch script
- Log in to post comments
For updating folder dates, the utility "FolderTimeUpdate" can be used (developed by NirSoft).
Search-words: bat cmd batch script
Comments
CMD-script to create logfile with date-time (yyMMdd-hhmmss)
Script below is a sample of calling another CMD-file and redirecting screen output (including errors) to a logfile with current time.
cmd/bat-file to search and replace in filename
The batch-script below can be used to rename files, it will ask for search and replace strings.
Powershell Tips
Cross-platform Powershell:
https://aka.ms/pscore6
Powershell - Search folder and remove XML-element in files
The Powershell-script below can be used to search for and remove an XML-element from all XML-files in chosen folder.
Running the script it will ask for folder and name of XML-element.
Default value for XML-element is "sheetProtection" as it primary use was to remove sheet-passwords in Excel-documents.
(rename xlsx-files to "zip", extract zip into folder, and then use powershell-script on folder ".\xl\worksheets"
Suggested name for powershell-file: "remove-xml-elem.ps1"
Search-words: excel powershell
Simple Powershell-script…
Simple Powershell-script that will create a log file with current date and time.