-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks