UPDATE my problem was that I named my batch file same as already system "date" program .. now fixed..
now it's working almost like a charm - BUT new issue:
I press Win+R and then "d"
and I get
quote:"2013-12-22
"
note the extra ENTER after the date :/
how can this be removed?
thank you..
===============
original
I made a date.bat with
UPDATE I think on Win Visa, 7, 8 ... you can use CLIP instead of my ClipCopy.exe
as in
echo %date:~10,4%-%date:~4,2%-%date:~7,2% | CLIP
my version
c:\z\ClipCopy.exe %date:~10,4%-%date:~4,2%-%date:~7,2%
if I run the command from cmd all is fine
but if I run .bat I get
C:\Users\A>c:\z\ClipCopy.exe %date:~10,4%-%date:~4,2%-%date:~7,2% C:\Users\A>date.batThe system cannot accept the date entered.Enter the new date: (mm-dd-yy) C:\Users\A>
what gives?
please help...
thank you..
↧