Please Help Me How To Script this Into PowerShell
Test Case: Create powershell function
List child folder
• Scriptname: listChildFolder
• Input: full path parent folder
• Output: list of child folder name, sort by Date Modified, descending
• Sample input: “D:\Test”
• Sample output:
If show some results = “Folder1”,“Folder2”,“Sample Folder 3”
If show empty = “Folder empty”
If problem happen = “Error: ”
Compare file size
• Scriptname: compareTwoFiles
• Input: full path of file1, full path of file 2
• Output: filename that has bigger size
• Sample input: “D:\Test\File 1”, “D:\Test\File 2”,
• Sample output:
If one file has bigger size: “File 1”
If both has same size: “both file has same size”