Below is a small piece of code that when placed into a batch file, can be ran to creat a folder named with todays date. I am not sure where it came from or who wrote it, but i was wondering if anyone knew how to duplicate this same process in Windows 2000 Professional and XP Pro. I know almost nothing about DOS and this one is way out of my league.
Code:
@echo off
echo @PROMPT SET DATE=$D$_> %temp%.\temp.bat
%comspec% /c %temp%.\temp.bat > %temp%.\temp2.bat
echo.> %temp%.\temp.bat
for %%? in (e111''3B e114''3B w q) do echo %%?>> %temp%.\temp.bat
DEBUG %temp%.\temp2.bat < %temp%.\temp.bat > nul
call %temp%.\temp2.bat
echo SET DATE=%%2%%3%%4> %temp%.\temp.bat
call %temp%.\temp.bat;%date%
for %%? in (temp.bat temp2.bat) do if exist %temp%.\%%? del %temp%.\%%?
C:
CD C:\WINDOWS\DESKTOP
MKDIR %DATE%
CLS