This script works
echo off
@REM Seamonkey's quick date batch (MMDDYYYY format)
@REM Setups %date variable
@REM First parses month, day, and year into mm , dd, yyyy formats and
then combines to be MMDDYYYY
FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B
FOR /F "TOKENS=1,2 eol=/ DELIMS=/ " %%A IN ('DATE/T') DO SET mm=%%B
FOR /F "TOKENS=1,2 DELIMS=/ eol=/" %%A IN ('echo %CDATE%') DO SET dd=%
%B
FOR /F "TOKENS=2,3 DELIMS=/ " %%A IN ('echo %CDATE%') DO SET yyyy=%%B
SET date=%yyyy%%mm%%dd%
echo %date%
mkdir BEMRX-%date%
cd BEMRX-%date%
mkdir Source
mkdir CD
but I would to make the directory name the date then -BEMRX instead of
the way it is. When I try this
mkdir %date%-BEMRX
that makes two directories(one the date and one -BEMRX). Is there a
way to make that the name of the one
directory?
Thanks,
Tom
Bookmarks