Linked by Thom Holwerda on Sun 21st Oct 2007 10:57 UTC, submitted by Inkslinger77
Windows "Buried deep within Windows' bosom is a carbon-crusted fossil from the ancient days of computing. This aged wart on Windows' soul harkens back to a more primitive time, when computers lacked the oomph to go graphical and mice were nothing but rodents. I speak of the command prompt, whose roots lie in DOS, that antique operating system of the 1980s. DOS is gone now. Yet despite Windows' glorious graphical goodness, a wispy memory of text-based computer life still exists. It's a program called CMD.EXE, and it appears in Windows as the command prompt window. Believe it or not, the command prompt to this day still serves as a useful alternative way to control your computer. Indeed, there are some things you can do in the command prompt window that in Windows' graphical interface are tedious, slow or darn near impossible. Come with me as we discover how an old warhorse like DOS can once again find purpose."
Permalink for comment 279704
To read all comments associated with this story, please click here.
PITA to use
by Hurtta on Mon 22nd Oct 2007 03:59 UTC
Hurtta
Member since:
2006-04-16

My interest to use windows command shell / dos ( or whatever you want to call it) dropped quickly when i first time needed read current date to a variable in BAT file.

Please, if _anyone_ knows any better way to do this on bat file not using any 3rd party tool, please let me know.

rem get date
FOR /F "tokens=2" %%i IN ('date /t') DO set mydate=%%i

Reply Score: 1