![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-06 08:53 |
47,812 topics / 349,914 posts / today 0 new / 48,268 members |
| DOS启动盘 & LOGO技术 (启动盘室) » Store the current time, date, version number, etc. in environment variables |
| Printable Version 848 / 0 |
| Floor1 Lydong | Posted 2003-06-26 00:00 |
| 元老会员 Posts 407 Credits 1,468 From 广州 | |
|
This file was posted by MYS before; I only made a few minor changes. It can store the current time, date, drive letter, path, version number, etc. in environment variables, and it's also very convenient to use. You only need to save the following content as GET.BAT to use it. Enter GET directly to view the help information.
---------------- ::get.bat @if == goto help @if == goto help @if == goto help @if == prompt set %2=%3$_ @if == goto end @if == set temp=c: @%comspec% /c %0 invoke %1 $%2>%TEMP%\tt.bat @echo off call %TEMP%\tt.bat if "%3"=="" DEL %TEMP%\tt.bat set CMDLINE= goto end :help @echo off echo. echo GET.BAT V1.0 Lydong 030625 echo =============================== echo get curver echo get or echo. echo eg: get time t echo get dosver v echo. echo Command: echo T Current time echo D Current date echo P Current drive and path echo V Windows version number echo N Current drive echo =============================== echo. :end |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |