Forum Replies Created
Thanks again Olaf. When I tried to pipe the Foreach to Export-csv, it gave me an error before I could even run it, saying: “An empty pipe element is not allowed.”
Sorry, just saw Olaf’s reply, much appreciated and many thanks.March 20, 2019 at 11:21 am in reply to: Get-PSDrive in PS 5.1 ISE works differently on Win7 vs. Win10 #145530
Thanks, much appreciated.March 19, 2019 at 9:30 pm in reply to: Get-PSDrive in PS 5.1 ISE works differently on Win7 vs. Win10 #145434
Thanks Bart. Is your test example a USB flash drive?March 15, 2019 at 4:48 am in reply to: Delete all files in a group of folders and list the deleted files #144866
Much thanks Messrs. Kvprasoon and JS. I am highly grateful that you have taken the time and effort to answer my questions and provide clear explanations with excellent examples. This has improved my Powershell learning. Best,March 14, 2019 at 8:53 pm in reply to: Delete all files in a group of folders and list the deleted files #144824
Sincerest thanks Mr Kvprasoon, much appreciated. I understand the -PATH parameter takes the form of a script block which contains 2 statements separated by a semi-colon. The first statement
simply accumulates each file’s pathname into an ARRAYLIST which is used later for printing. The second
is actual input to the -PATH parameter for file deletion.
My question is more on the general side: in such a script block, where you can have many statements, how does Powershell “operate” so that it knows which one is to be the actual parameter input? Or is it the programmer’s responsibility to ensure that there’s no ambiguity: i.e., in this case the -PATH parameter of Remove-Item expects an object of Type [string] so the programmer must ensure this “happens”. Thanking you in advance for your attention and kind consideration.March 14, 2019 at 11:16 am in reply to: Delete all files in a group of folders and list the deleted files #144683
Many thanks, Mr Sam Boutrous, your inputs are highly appreciated.March 14, 2019 at 11:14 am in reply to: Delete all files in a group of folders and list the deleted files #144681
Sorry, I struggled for over an hour with my post/question. Please ignore this post/reply (to myslef), it was intended for another post.
Yes. Many thanks, much appreciated.February 23, 2019 at 6:14 pm in reply to: Can I cast a calculated result to a FIXED POINT DECIMAL? #141168
Sincere thanks Mr postanote, much appreciated.
I have just read and studied Mr Kevin Marquette’s article on arrays. Brilliantly written, very educational for beginners and learners. Many thanks to all of you who continue to share your knowledge and technical tips.February 17, 2019 at 1:29 am in reply to: Is there a short-cut to creating a new [pscustomobject]? #140032
Many thanks Mr Simmers, much appreciated.February 9, 2019 at 7:59 pm in reply to: Export-Excel is not recognized in Powershell Core (6.1) #138882
Thanks again Mr Fullenwarth, much appreciated.