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.
It still has On Error Resume Next - so it's still garbage.
Not knowing how to code doesn't make the language garbage it makes the coder garbage.
This is not knowing how to code:
objShell.Run strRunCmd, 1, True
This is how to handle the error properly and reset properly:
objShell.Run strRunCmd, 1, True'True means wait for the app to exit before continuing the scriptIf Err.Number <> 0Then
ErrMsg Err.Number, Err.Description, "Error with objShell.Run [" & strRunCmd & "]", TrueEndIfOnErrorGoTo0
If you don't like it, don't use it. All of you VB haters make me laugh. Calling something that is used by thousands of programmers "Garbage", is just childish. The opposite of love isn't hate, it's indifference.
Seriously you are on this same issue, get over it, most of us here don't give a rats about the index and put very little faith in the veracity of it's results. Why would we, the majority of us use c# and live peaceably with the VB.net community despite the barrage of insult hurled at them from time to time.
Never underestimate the power of human stupidity
It is a lie, You're confounding Classic VB (1998, 20 years old language) with VB.NET (an C# equivalent language).
No, I'm not.
Saying that VB.NET s a C# equivalent is nonsense; they target the same runtime, but so does managed C++. No one in their right mind would compare VB to C++, calling them equivalent. It implies that you could take a VB.NET programmer and drop him/her in an "equivalent" environment. You can't
I did it, I have found not articles about 50% of VB.NET projects fails, again you are lying.
I could offer help, but I'm weirdly enough not in a helpfull mood
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.