|
-
Jul 16th, 2007, 01:52 AM
#1
Member
Re: Automate Command Prompt Window (CMD), Redirect Output to Application [2003/2005]
 Originally Posted by TTn
SlumberMachine,
Yeah maybe you are.
Usually everyone would look at the code to see what it means, and so yeah it's a no-brainer. There are comments throughout it.
I don't appreciate you posting things like:
"DONT TRY TTN'S MALICIOUS CODE".
By all means, everyone can try my/gigemboy's code, with the command you want, in the window.
Duh.
Look, I didn't mean to hurt your feelings, but what you posted was not only wrong, but malicious, and you know it. And I'm just trying to do what is right and warn people, like myself that are trying to learn. You didn't comment that line of the code. If you didn't intend for it to be malicious then why not do a "dir c:" instead? I've never heard or ever had to use a date command in dos and just figured it would return something interesting like the number of days until that date or something. Don't get defensive, just do what is right for others and admit the mistake and accept the punishment (which is someone else warning others not to use a bit of code).
No need to take it all personal or anything, and if you want to think that I'm an ignorant idiot, that doesn't know crap about dos commands or vb that is fine with me. It sounds like you have an awesome wealth of knowledge in this area and I'm sure you are way better then me. but.. the fact is:
you posted dangerous code, which did screw up someones system, and others should be warned to not make the same mistake when trying it out.
-
Jul 16th, 2007, 10:30 AM
#2
Re: Automate Command Prompt Window (CMD), Redirect Output to Application [2003/2005]
You could have, and should have simply stated that the command, will adjust your clock.
If anyone intends to use the command window, then they'd be putting in their own command. Your point is completely mute, because everyone knows that.
I did comment that piece in fact.
"'the commands you wish to run..... "
That's not malicious, because you could enter any command you like.
I can't think of one thing that can be maliciously affected, by changing the time anyway. It didn't happen, you can just change the time back. Woopie. No systems were screwed up, as you implied, and lied about.
I hate liars, that try to make a point by testifying false data.
I really wish the moderators would ban counter-productive members like you.
-
Jul 16th, 2007, 12:02 PM
#3
Member
Re: Automate Command Prompt Window (CMD), Redirect Output to Application [2003/2005]
These are the facts:
It did screw up someones computer (mine) and took a few hours, after setting the date back to the correct time to repair the damage which included:
Outlook Calender - had to have all appointments reset since they all expired.
VB Express 2005 - All projects would not compile and would use the last compile since the date change.
Trend Micro Client server security agent failed to run until I reinstalled.
As for lying, this code here:
Code:
Private Sub CMDAutomateThread()
TextBox1.Text = CMDAutomate("date", "12/31/2099") 'Set textbox to string return
End Sub
Does not have any comment that states what those commands do.
If you weren't so set on judging your self worth by your reputation on an internet forum you could save a lot of counter production here. It's funny how you get so defensive over this whole thing. You just need to chill and stop caring so much about what others think of you and your knowledge of computers.
I'm not going to check this thread anymore, best of luck to you.
-
Jul 16th, 2007, 12:54 PM
#4
Re: Automate Command Prompt Window (CMD), Redirect Output to Application [2003/2005]
That line sets the textbox contents, to the return value of the function.
It seems you don't know what a function is, otherwise you would have realized where to find this comment within it:
"'the commands you wish to run..... "
Since you didn't wish to run my date command example, then it was your mistake. Almost all examples have a spot, where you put the custom parameter that you want. The place to put this customization was clearly marked, but you probably glanced over it without thinking or understanding.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|