China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 16:50
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Question about a date issue View 887 Replies 1
Original Poster Posted 2006-05-28 16:07 ·  中国 上海 普陀区 电信
初级用户
Credits 40
Posts 8
Joined 2006-05-28 15:30
20-year member
UID 56153
Gender Male
Status Offline
If I use set dd=%date:~0,4%%date:~5,2% to represent the current month 200605
If I want the variable dd to represent last month, how should I write it?
Floor 2 Posted 2006-05-28 17:30 ·  中国 北京 鹏博士BGP
中级用户
★★
Credits 404
Posts 179
Joined 2006-03-30 14:44
20-year member
UID 53056
Status Offline
Forum Jump: