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-06 09:15
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to get a substring from a string? View 1,740 Replies 15
Floor 16 Posted 2007-11-02 00:04 ·  中国 江苏 常州 电信
银牌会员
★★★
Credits 2,404
Posts 946
Joined 2005-09-08 13:44
20-year member
UID 42345
Status Offline
@echo off
for /f %%i in ('date /t') do echo %%i
pause>nul
Here I get 2007-11-01

[ Last edited by terse on 2007-11-2 at 12:09 AM ]
Forum Jump: