So, I just got Windows 7, and I love it more than I love Linux. I think it was the ads for it. -.-
When I had XP, I learned how to make simple batch files. nothing major, just something to bid my time while in class.
I just mastered the "IF" command, and now I want to try and see if I can expand on that.
IF EXIST C:\Users\Travis\Documents\Batchfiles\oinker.txt (
) ELSE (
echo Delete function is a failure.
that's what i have, and mind you, I am not a programmer by any means. I just love computers and google is my friend.
I want to make the if command search for an running program, say notepad.exe. What would be the command for that?
And can someone explain ERRORLEVEL to me? All I can find on google or anywhere else is what it does, but I dont understand the meanings of 1,2,3....
Any help would be appreciated.
Like I said, no programmer, just a mechanical engineering student who gets bored in math class.
ALSO:: this is all being in notepad. no special programs, just notepad