|
I'm shameless .bat user. In fact I just edited one of my script this morning. I have repetitive mundane work and I write a batch file to do the work for me.
Some of the tasks I do with batch files
- Compare my local source code against source control
- Get/Refresh latest code from source code
- Build projects and solutions
- Compare a number of folders I regularly touch.
- Check who is logged on to which shared servers
The list goes on and on. It saves me a lot of time using .bat files instead of typing commands and/or clicking.
|
|
|
|
|
You have made me happy!
I am not a proper programmer like most here, I just do what I can to make my life easier.
Fortunately on those occasions when I have run into a brick wall (ie found the circumference of ignorance as far as coding goes) I utilise the gestaltic mind of the CP community to help solve my problems.
I also prefer to use the stuff I do know, such as opening a command shell and calling a BAT file because I am within my comfort zone with such venerable practises!
---------------------------------
Obscurum per obscurius.
Ad astra per alas porci.
Quidquid latine dictum sit, altum videtur .
|
|
|
|
|
i spent all day yesterday messing with the .BAT (and .vbs) files that run my build system.
they're hideous, but they work!
|
|
|
|
|
Batch files? I still use them and though it sounds perverse, I rather like them.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
|
|
|
|
|
If you use the .cmd extension rather than .bat it makes it look as if you have moved forward a few years at least.
Veni, vidi, abiit domum
|
|
|
|
|
Images is everything.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
An old boss of mine - who was clueless when it came to IT even though he was "Director of IT" - had read how .BAT files were old technology, "a thing of the past", so instructed me to no longer make or support any .BAT files for any of our essential operations. I told him the change away from .BAT files would be a big job, and was about to point out what a waste of time it would be when he interrupted. He was adamant that he knew better than I what was needed and that I should just "get on with it as a top priority". He gave me three weeks to get it all done. This deadline was, of course, completely arbitrary as usual. I hadn't told him how long it would take and he hadn't asked.
I had some sudden inspiration and agreed to the three week deadline but warned him that I would need to concentrate on just this task and nothing else, I was not be disturbed and I might just make it. He readily agreed since I normally fought him on his arbitrary deadlines and went away happy - he issued instructions to the rest of the staff that I was working on a vital change and was not to be disturbed...
I spent a couple of hours going through all the .BAT files (about 100) and renaming them to .CMD files and testing them. Then I had three weeks of undisturbed peace and quiet to get caught up on a couple of other projects to which he had given equally unrealistic deadlines. I wished I had pushed for four or five weeks - he would probably have agreed to it!
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
No need to over engineer if you don't have to. I bet it took you two minutes anyways.
|
|
|
|
|
Quote: The 1980's called and want me back If you are asking for permission, then yes, I will allow it.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
1980's? You mean building basic programmes on Commodore Pets, women and flying? And more flying? Because it was a requirement to learn FLYING at Cranfield in those days?
Count me in. Maybe more big-haired women this time though.
Do You Want To Be A Hero?
|
|
|
|
|
|
I don't see any problem using something that has been tried and tested and we know works!
|
|
|
|
|
I use them a lot Dave, they are old and simple and they work ( just like me )
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
You may be old and you may work, however, the evidence here on CP suggests that you are not simple.
Your signature suggests that you would never use a bat file.
Still, with appropriate chemical aids, you are probably capable of anything you desire.
....and yeah I use them to. It's a KISS thing I guess.
"Rock journalism is people who can't write interviewing people who can't talk for people who can't read." Frank Zappa 1980
|
|
|
|
|
I would use a stone axe if it fits the purpose! Nothing wrong with .BAT (we all love BATman)!
|
|
|
|
|
That's nuttin'
Last year, I installed an old 5 1/4" disk drive, so that I could read a file off a 25 year old floppy.
Truth,
James
|
|
|
|
|
Not quite as old as a 5 1/4, but I did dig out a zip drive to see if there was anything useful on a collection of old backups that I found lurking in the depths of the garage. Very painful process trying to get it to work with a win 7 machine so I ended up grabbing an old win 2k machine that was also lurking in the garage - all just to check on old data.
|
|
|
|
|
Don't deprecate your work. I use more or less daily a .dat file to copy .dll files after compiling my programs in VB.Net 2003. I'm proud that I could make the file because it avoids a lot of manual copy file work and frustrations when I forgot copying the files before start testing my changes.
Kind regards,
Dirk
|
|
|
|
|
ActiveState Perl is what I use for that sort of thing. At least a perl script can do more stuff.
If it gets long enough move it to php or java.
If it still doesn't perform, c++.
But use whatever language ya know that'll work.
The language is less important than having something that's DONE.
|
|
|
|
|
Nothing wrong or embarrassing about it, as long as it's the right hammer for the right nail.
|
|
|
|
|
If Kanye West and Kim Kardashian were both drowning and you only had time to save one, what kind of sandwich would you make?
I just wish the elephanting wind and rain would stop, I haven't known such a persistent period of bad weather to batter these shores for such a long time. At least we aren't getting it as bad as some places. Well, we maybe are, but we are used to it
I really just wish it would get a few Deg C colder so that the rain will turn to snow like it should be!
Oh, and for those back to work today, nae luck, at least it will nearly be time to go home. My kiddiewinkles go back to school tomorrow and the wife goes back to work. I might make an appearance in the office this week, but more likely go back on Monday, then offshore to my new platform on the Wednesday.
In the meantime, I am battling with 3 wii remotes that aren't working, they left them so long the batteries leaked inside. So with new batteries in, they only partially work. Strip down and clean up will hopefully do the trick, but they use some stupid screw head, so opening them might be a challenge!
modified 6-Jan-14 11:48am.
|
|
|
|
|
DaveAuld wrote: If Kanye West and Kim Kardashian were both drowning
Had me worried there. Personal I like a good Rubin.
|
|
|
|
|
|
A bacon sandwich. *DUH*
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
DING DING DING DING.........WE HAVE A WINNER!!!
That is of course the only accepted answer!
|
|
|
|