SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
Hybrid View
-
Jan 14, 2009, 14:21 #1
- Join Date
- Aug 2007
- Posts
- 494
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Problem with DATE in the batch file...
Hi everyone.
I have this file batch:
DIR *%date:~6,4%%date:~3,2%%date:~0,2%.TXT /S /B OUTPUT.TXT
in this directory:
STM1251DS20080114.TXT
STM5251DS20080114.TXT
STM5271DS20080113.TXT
In the OUTPUT.TXT file I want to have:
C:\Inetpub\wwwroot\bat\STM1251DS20080114.TXT
C:\Inetpub\wwwroot\bat\STM5251DS20080114.TXT
But the OUTPUT.TXT file is empty ... why?
Can you help me?
viki
Bookmarks