Click here to Skip to main content
15,885,365 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I wish I liked Powershell Pin
Kiriander5-Jul-20 20:09
Kiriander5-Jul-20 20:09 
GeneralRe: I wish I liked Powershell Pin
honey the codewitch5-Jul-20 20:26
mvahoney the codewitch5-Jul-20 20:26 
GeneralRe: I wish I liked Powershell Pin
Kiriander5-Jul-20 20:29
Kiriander5-Jul-20 20:29 
GeneralRe: I wish I liked Powershell Pin
pmauriks5-Jul-20 21:17
pmauriks5-Jul-20 21:17 
GeneralRe: I wish I liked Powershell Pin
Kiriander5-Jul-20 21:24
Kiriander5-Jul-20 21:24 
GeneralRe: I wish I liked Powershell Pin
pmauriks5-Jul-20 21:49
pmauriks5-Jul-20 21:49 
GeneralRe: I wish I liked Powershell Pin
Phil.Benson5-Jul-20 21:18
professionalPhil.Benson5-Jul-20 21:18 
GeneralRe: I wish I liked Powershell Pin
Jan Holst Jensen25-Jul-20 23:17
Jan Holst Jensen25-Jul-20 23:17 
Or try to do consistent quoting to pass parameters to an external executable. It's mind-blowing that a fundamental feature for a scripting language - interfacing to other commands - is so complicated. I have in some instances ended up passing parameters to batch files as environment variables. That works reliably.

And then there was the lovely incident with invisible files in an earlier version of PS. I called out to a batch file that created files on a network drive. Unfortunately, when I returned to PS the files were invisible until PS was restarted. Not a happy experience, when the PS was supposed to process backup files produced by the batch file. Caused me a good deal of lost hours - and backups!

And yes, the function return value mystery. Who ever thought that was a good idea ?

I have really tried to like PowerShell. It feels like it should be a major step up from MS-DOS scripting with proper flow control, error handling, etc. But now I try to stay away from it, as it usually ends up eating my time, especially when I need to make it talk to existing scripts.

One success story: I did a PS script that read a file and processed it via a .NET library. That was easy, clear code, and no surprises.
GeneralRe: I wish I liked Powershell Pin
Phil.Benson5-Jul-20 23:24
professionalPhil.Benson5-Jul-20 23:24 
GeneralRe: I wish I liked Powershell Pin
da77a5-Jul-20 21:39
da77a5-Jul-20 21:39 
GeneralRe: I wish I liked Powershell Pin
MikeTheFid6-Jul-20 2:36
MikeTheFid6-Jul-20 2:36 
GeneralRe: I wish I liked Powershell Pin
obermd6-Jul-20 3:18
obermd6-Jul-20 3:18 
GeneralRe: I wish I liked Powershell Pin
raddevus6-Jul-20 9:34
mvaraddevus6-Jul-20 9:34 
GeneralRe: I wish I liked Powershell Pin
MikeTheFid6-Jul-20 6:28
MikeTheFid6-Jul-20 6:28 
GeneralRe: I wish I liked Powershell Pin
MSBassSinger6-Jul-20 6:37
professionalMSBassSinger6-Jul-20 6:37 
GeneralRe: I wish I liked Powershell Pin
raddevus6-Jul-20 9:31
mvaraddevus6-Jul-20 9:31 
GeneralRe: I wish I liked Powershell Pin
Member 132567506-Jul-20 11:26
Member 132567506-Jul-20 11:26 
GeneralRe: I wish I liked Powershell Pin
thorne9997-Jul-20 6:53
thorne9997-Jul-20 6:53 
GeneralRe: I wish I liked Powershell Pin
honey the codewitch7-Jul-20 7:07
mvahoney the codewitch7-Jul-20 7:07 
QuestionWhere are the article contests? Pin
honey the codewitch4-Jul-20 12:58
mvahoney the codewitch4-Jul-20 12:58 
AnswerRe: Where are the article contests? Pin
OriginalGriff4-Jul-20 19:41
mveOriginalGriff4-Jul-20 19:41 
GeneralRe: Where are the article contests? Pin
honey the codewitch5-Jul-20 3:13
mvahoney the codewitch5-Jul-20 3:13 
JokeDepartment of Health... PinPopular
Mike Hankey4-Jul-20 8:17
mveMike Hankey4-Jul-20 8:17 
GeneralThere are going to be a lot of hangovers tomorrow! Pin
OriginalGriff4-Jul-20 3:12
mveOriginalGriff4-Jul-20 3:12 
GeneralRe: There are going to be a lot of hangovers tomorrow! Pin
Richard MacCutchan4-Jul-20 3:39
mveRichard MacCutchan4-Jul-20 3:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.