ghostmachine4 wrote:why do you think so?
We don't have non-verbal communication on a forum. Your posts have tended to be short -- sometimes with not even a passing mention of the workable solutions that others have provided. Most people would read your posts and think "that guy's tone is anywhere from pompous to arrogant to jerk to clueless to mean to whatever". We don't know you, and many people don't "proofread" their posts to see if it might sound harsh or whatever. Case in point:
some minor issues
1) there's no need to use temp files, right?
2) this solution doesn't take care of different date/time settings. yes, i am not about a to change my regional settings to run your script:) the script should take care of that
3) you forgot to put 20 infront of 09 to make it 2009
Especially the bold portion. Yes, you did throw a smiley face in there, but that doesn't absolve you if it still sounds like an attack.
you can call me a jerk as long as my suggestion sound like bullshit and does not even answer the OP, otherwise they are valid facts to be looked at. Isn't it true that the batch code is not independent of one's regional settings? I know you had assumed your own date format, however, i am also only stating a fact. you don't have to get so upset over a fact.
It's not the fact -- it's how you presented it.
As for the "20" in front of the "09" case, have you tested your code when you run it on a PC with different regional settings?
Are you serious? It's a perfectly reasonable assumption from the original post that this will be run on 1 machine and, as a "former DOS pro" it is further reasonable to assume that the original poster can tweak the code to match his regional requirements. Should that not be the case, a more complicated script can be developed if the original poster asks for more help. Not to mention that this website has date/regional tools that are pretty close to "cut and paste". Sometimes we expect the original poster to do some of their own work.
There are NUMEROUS ways to do scripts (that's the beauty of this website)... and you providing another view or example is welcome (even the VB Scripts). But, jeeze, show some common courtesy to those of us trying to help others.
Relliott is being nice. My personal opinion is that this is a dos forum, and I should use standard dos commands available to pretty much any standard WINXP type machine and only use other options if it can't be done in dos. Sometimes an alternative solution is hinted at (as in "this is awkward in pure dos--IF you're interested I could show you a visual basic script (or whatever) that would likely be easier and better"). But that's must my opinion.
yes, there are numerous ways, so we should choose to code our script the best possible way without losing efficiency and the ability to comprehend/maintain the code.
Do you really not comprehend how pompous, snobbish, and arrogant that sounds? It pretty much is the same as "My standards are right, your standards are wrong" or, really, just "I'm right, you're wrong".
Lastly I am not even saying your batch is bad that it can't be used. Just that its not the best way to do things.
Here in the midwest (Iowa, USA), despite the definition of the individual words, when anyone uses the phrase "That's not the best way to do
something", they mean exactly that it's bad. No joke. I guess I'd call it "pretend politeness" or something. It's not "politically correct" to just tell someone they're doing something wrong, so you sorta say "it's not the
best way", but you really just mean it's bad. And what's so funny, is that everyone knows that's what you mean, but somehow we all still accept it as a more polite way to talk to each other.
So anyway -- let me try to be clear. I don't know you. I don't believe anything you've posted has been mean or overtly negative. I do believe that some of your posts have been slightly insulting (though probably unintentional). In my opinion, the overall "tone" of your posts has been condescending, or perhaps arrogant. Like you know better than anyone else and somehow have earned the right to correct the rest of us and show us a better way --
your way. There are a lot of people on forums like this who just want "quick and dirty" to get something done. I feel like you are imposing your personal sense of coding style and good coding practice upon the original posters. Really, isn't it up to them to decide if their problems have been satisfactorily solved? It's not like you are engaging in an intellectual discussion of the presented solution for the edification of all involved (example -- we could have a nice discussion about the evils of temp files and that they should generally be avoided where possible). Instead you are completely bypassing the already proposed solution and presenting (by all appearances because you believe it to be superior) a completely different solution.