Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

need some assistance on this project

$
0
0
I'm working on this project and not coming out the way I like. Some advice would be appreciated. This is the project:
    • Using Get-ChildItem and sorting with Sort-Object in a pipeline, return an array of text files found in theProgram Files directory. You may encounter errors relating to a lack of permissions in certain directories. This is alright... just continue on and disregard any protected directories.
    • Create loop to scan the returned results; in the loop:
    • Determine if the log file length is greater than 10k
    • If the log is greater than 10k, get the file's FullName and copy the file to a directory calledc:\temp\currfiles

    Viewing all articles
    Browse latest Browse all 2562

    Trending Articles



    <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>