как получить в батнике текущий день? То есть из даты 19,06,2003 выковырять 19.
Добавлено вот программа
section 1 of 1 of file exprdate.exe (SKUUE 0.4.6beta/FAR)
table
`!"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
SKUUEAttr )@``````%``````````````!``$`````````````````!#8````
begin 700 exprdate.exe
M35I0``(````$``\`__\``+@`````````0``:````````````````````````
M``````````````````````$``+H0``X?M`G-(;@!3,TAD)!4:&ES('!R;V=R
M86T@;75S="!B92!R=6X@=6YD97(@5VEN,S(-"B0W````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````````````````````````````````%!%``!,`08`&5Y"*@``
M````````X`".@0L!`AD`!`````P```````#H$0```!`````@`````$```!``
M```"```$``````````0``````````'`````$`````````P``````$```0```
M```0```0````````$````````````````$```*0$````8`````(`````````
M````````````````4```L```````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````0T]$10````#D`P```!`````$````!```````````````````
M(```8$1!5$$`````)``````@`````@````@``````````````````$```,!"
M4U,``````!4`````,``````````*``````````````````````#`+FED871A
M``"D!````$`````&````"@``````````````````0```P"YR96QO8P``L```
M``!0`````@```!```````````````````$```%`N<G-R8P`````"````8```
M``(````2``````````````````!```!0`````````````````'``````````
M%```````````````````0```4```````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````````````````````````````````````/\EL$!``(O`_R6L
M0$``B\#_):A`0`"+P/\EI$!``(O`_R6@0$``B\#_)9Q`0`"+P/\EF$!``(O`
M_R640$``B\#_)9!`0`"+P/\EC$!``(O`_R6(0$``B\#_)81`0`"+P/\E@$!`
M`(O`_R5\0$``B\#_)7A`0`"+P/\EP$!``(O`N`0@0`#HUO___\.04XO8,\"C
M`"!``&H`Z-O___^C`#!``*$`,$``HP@@0``SP*,,($``,\"C$"!``.C!____
MN@0@0`"+P^AE____6\.-0`!5B^PSP%5H]1!``&3_,&2)(/\%!#!``#/`6EE9
M9(D0:/P00`##Z2[____K^%W#B\"#+00P0``!P_\ES$!``(O`_R7(0$``B\#_
M)=A`0`"+P/\EU$!``(O`58OL,\!5:$T10`!D_S!DB2#_!0@P0``SP%I9662)
M$&A4$4``P^G6_O__Z_A=PXO`@RT(,$```</_)>Q`0`"+P/\EZ$!``(O`_R7D
M0$``B\#_)>!`0`"+P%6+[#/`56B?$4``9/\P9(D@,\!:65EDB1!HIA%``,/I
MA/[__^OX7<,'````L!%````10`#0$$``<!!``&@00``@$4``&!%``%@10``H
M$4``$!%```@10`!X$4``<!%```````"`$4``58OLN00```!J`&H`277Y4:&X
M0$``Q@`!N*@10`#H@O[__S/`56AZ$T``9/\P9(D@Z$O___^#Q/C='"2;N1`P
M0`"Z#C!``+@,,$``Z"C___^-5>RX`0```.C#_?__BT7LZ/O]__^%P'X4C57H
MN`$```#HJOW__XM%Z(H`ZP*P("QD=`HL"71&+`QT(NM@#[<5$#!``*&T0$``
MZ)+]___HA?W__^AP_?__Z<H````/MQ4,,$``H;1`0`#H<OW__^AE_?__Z%#]
M___IJ@````^W%0XP0`"AM$!``.A2_?__Z$7]___H,/W__^F*````C57D,\#H
M*?W__XU%Y+J0$T``Z&3]__^+5>2AM$!``.A?_?__Z"+]___H_?S__XU5X#/`
MZ/O\__^-1>"ZK!-``.@V_?__BU7@H;1`0`#H,?W__^CT_/__Z,_\__^-5=PS
MP.C-_/__C47<NLP30`#H"/W__XM5W*&T0$``Z`/]___HQOS__^BA_/__,\!:
M65EDB1!H@1-``(U%W+H%````Z,?\___#Z:G\___KZ^BR_/__``#_____$P``
M`"!D87D@;W5T<'5T(&-U<B!D87D`_____Q<````@;6]N=&@@;W5T<'5T(&-U
M<B!M;VYT:`#_____%0```"!Y96%R(&]U='!U="!C=7(@>65A<@``````````
M``````````````````````````````#_____````````````````````````
M````````M$!``+A`0```````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````/1```!X0```````````````````8D,``,!`````````````````
M``"$0P``R$```````````````````,Q#``#40```````````````````$$0`
M`.!``````````````````````````````/Y````<00``.$$``&I!``"N00``
MQD$``/)!```20@``*$(``&Y"``",0@``MD(``.1"```,0P``)$,``#Q#``!.
M0P```````'!#````````CD,``*Y#````````UD,``/1#````````&D0``#I$
M``!81```;D0```````!R=&PW,"YB<&P```!`4WES=&5M0&EN:71I86QI>F%T
M:6]N)'%Q<G8```!`4WES=&5M0$9I;F%L:7IA=&EO;B1Q<7)V````0%-Y<W1E
M;4!296=I<W1E<DUO9'5L921Q<7)P,3=3>7-T96U`5$QI8DUO9'5L90````!`
M4WES=&5M0$!7<FET93!,4W1R:6YG)'%Q<G(Q-5-Y<W1E;4!45&5X=%)E8W@Q
M-U-Y<W1E;4!!;G-I4W1R:6YG`````$!3>7-T96U`0$Q3=')#870D<7%R=@``
M`$!3>7-T96U`0$Q3='),96XD<7%R>#$W4WES=&5M0$%N<VE3=')I;F<`````
M0%-Y<W1E;4!`3%-T<D%R<F%Y0VQR)'%Q<G!V:0````!`4WES=&5M0$!(86QT
M,"1Q<7)V````0%-Y<W1E;4!`4W1A<G1%>&4D<7%R<#(S4WES=&5M0%!A8VMA
M9V5);F9O5&%B;&5P,3=3>7-T96U`5$QI8DUO9'5L90```$!3>7-T96U`0$AA
M;F1L949I;F%L;'DD<7%R=@```$!3>7-T96U`0%=R:71E3&XD<7%R<C$U4WES
M=&5M0%1497AT4F5C`````$!3>7-T96U`0%=R:71E,$QO;F<D<7%R<C$U4WES
M=&5M0%1497AT4F5C:0````!`4WES=&5M0$!&;'5S:"1Q<7)R,353>7-T96U`
M5%1E>'1296,`````0%-Y<W1E;4!087)A;5-T<B1Q<7)I````0%-Y<W1E;4!`
M7TE/5&5S="1Q<7)V````0%-Y<W1E;4!/=71P=70`````0%-Y<W1E;4!)<T-O
M;G-O;&4`:V5R;F5L,S(N9&QL`````$=E=$UO9'5L94AA;F1L94$``')T;#<P
M+F)P;````$!3>7-C;VYS=$!I;FET:6%L:7IA=&EO;B1Q<7)V````0%-Y<V-O
M;G-T0$9I;F%L:7IA=&EO;B1Q<7)V`')T;#<P+F)P;````$!4>7!E<T!I;FET
M:6%L:7IA=&EO;B1Q<7)V`````$!4>7!E<T!&:6YA;&EZ871I;VXD<7%R=@``
M<G1L-S`N8G!L````0%-Y<W5T:6QS0&EN:71I86QI>F%T:6]N)'%Q<G8```!`
M4WES=71I;'-`1FEN86QI>F%T:6]N)'%Q<G8```!`4WES=71I;'-`1&%T921Q
M<7)V````0%-Y<W5T:6QS0$1E8V]D941A=&4D<7%R>#$V4WES=&5M0%1$871E
M5&EM97)U<W0R=#(`````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M```0``"@`````C`*,!(P&C`B,"HP,C`Z,$(P2C!2,%HP8C!J,'(P>C"!,)(P
MGC"C,*@PKS"V,,`PUS#C,/`P`C$*,1(Q&C$B,2\Q.S%(,5HQ8C%J,7(Q>C&'
M,9HQK#&P,;0QN#&\,<`QQ#'(,<PQT#'4,=@QW#'D,?DQ`3(.,B4R*C(O,G@R
M?3*8,ITRN#*],N,R\#(1,QXS/S-,,V@S````(```$````!PP(#``````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````````````````````#)HTRX````````!``H````8``"`````
M`#)HTRX``````@```(@``(`X``"`E@``@%```(``````,FC3+@````````$`
M`````&@`````````,FC3+@````````$``````'@```"P8```$```````````
M````P&```"0```````````````8`1`!6`$,`3`!!`$P`"P!0`$$`0P!+`$$`
M1P!%`$D`3@!&`$\````F/4\XPH(WN/,D0@,7FSJ#`0``S``````"`````6=E
M>'!R9&%T90``@5-Y<TEN:70`````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
C````````````````````````````````````````````````
`
end
sum -r/size 32014/5120 entire input file
при запуске с параметром day выдает текущий день
при запуске с параметром month выдает текущий месяц
при запуске с параметром year выдает текущий год
P.S. надеюсь не