Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
How to I convert this batch information to a vbs file
@ECHO off
cls
set t=2if "%date%z" LSS "A" set t=1
for /f "skip=1 tokens=2-4 delims=(-)" %%a in ('echo/^|date') do (
for /f "tokens=%t%-4 delims=.-/ " %%d in ('date/t') do (
set %%a=%%d
set %%b=%%e
set %%c=%%f
)
)set /a dd=100%dd%%%100,mm=100%mm%%%100
set /a dd= dd - 7
:set /a dd = 25
:set /a mm = 6
:set /a YY = 07if /i %dd% LEQ 0 set /a dd=1
if %mm% LSS 10 set mm=0%mm%
if %dd% LSS 10 set dd=0%dd%
ECHO %mm%-%dd%-%yy%pause
xcopy "W://
set a=
set b=
set c=
set d=
set e=
set f=
set t=
set dd=
set mm=
set yy=icecold3000

![]() |
Batch file help
|
Batch Programming
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |