Welcome Guest! To access all forums & features, please register an account or sign-in. → Why register?



Batch Files + DOS


6 replies to this topic - - - - -

#1 tim_s

    Default

  • 321 posts
  • Joined: 07-January 13
  • OS: OSX (Macbook Pro i7), Windows 7 (Gaming), Gentoo
  • Phone: Samsung Galaxy SIII, iPhone 4s

Posted 18 January 2013 - 17:34

Hi Everyone,

It has been quite some time since I have written a batch file, In-fact, since my departments switch over to Linux for administration terminals – I have personally have been using BASH within OSX or Red Hat.

I have created many simple / useful tools to get me through the day-to-day grind but someone asked me to solve an issue on their windows machines by automating a few tasks.

It was basic and probably many other applications could have replaced the script with a stronger and more visual feature set but it works. The user loves it ...

My question is,

Does anyone find DOS or creating batch files productive in their day-to-day work? What tasks did the batch files accomplish?


#2 Haggis

    Resident Elite

  • 1,344 posts
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 18 January 2013 - 17:36

i used to use them for copying files and folders to other drives as a back up

#3 Max Norris

    Resident Elite

  • 1,982 posts
  • Joined: 20-February 11
  • Location: Midwestern US
  • OS: Windows 8, 7, FreeBSD
  • Phone: Lumia 900

Posted 18 January 2013 - 17:39

View Posttim_s, on 18 January 2013 - 17:34, said:

Does anyone find DOS or creating batch files productive in their day-to-day work? What tasks did the batch files accomplish?
Use scripts all the time.. DOS not so much, maybe not since like the late 80's, unless you're meaning a console. But yea, some are the more traditional batch files, a couple VBS, but mostly they're PowerShell scripts now, just blows batch files out of the water and (for me, just an opinion) is just a bit better than Bash at it.

#4 guitmz

    Resident Fanatic

  • 579 posts
  • Joined: 10-June 11
  • Location: Brazil
  • OS: Windows 7, Fedora 17, OSX 10.8 and 10.6.8
  • Phone: Nexus 4

Posted 18 January 2013 - 17:43

hmmm i dont find dos that productive anymore... i use shell scripts for linux and for windows automation i use autoit mostly... batch files are good for ultra simple tasks only (if this is the case, go ahead, its easy and works)

#5 James Rose

    Software Developer

  • 1,920 posts
  • Joined: 20-January 04
  • Location: New York City

Posted 18 January 2013 - 17:47

I gave up on batch files back in the mid 90s as VB was much more powerful. While I agree that there can be some uses for batch files, I find that even for quick things using a full language gives me the control that I like.

#6 OP tim_s

    Default

  • 321 posts
  • Joined: 07-January 13
  • OS: OSX (Macbook Pro i7), Windows 7 (Gaming), Gentoo
  • Phone: Samsung Galaxy SIII, iPhone 4s

Posted 18 January 2013 - 21:16

View PostJames Rose, on 18 January 2013 - 17:47, said:

I gave up on batch files back in the mid 90s as VB was much more powerful. While I agree that there can be some uses for batch files, I find that even for quick things using a full language gives me the control that I like.

Understandable - the system is a little outdated.

#7 xendrome

    In God We Trust; All Others We Monitor

  • 5,887 posts
  • Joined: 05-December 01
  • OS: Windows 8 Pro x64

Posted 18 January 2013 - 21:24

Well it's not really DOS anymore, it's more of a command prompt/shell. But yes, I still use xcopy c:\ d:\ /c/h/e/f/r/s/v/k/y often...