J
JOE VAUGHAN
I'm renaming a file with the following syntax.
RENAME pharm_comp_eldetail.txt tpaid_ars.%date:~10,2%%
date:~12,2%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%
the problem is the time doesn't reflect the leading zero
for the hour when the file rename is prior to a two
digit hour. I get a syntax error. However, if I wait
until the hour is a two digit (10 AM vs 8 AM), the sytax
error goes away. If I could get my system to reflect a
two digit hour for any time before 10 AM, I believe the
error would go away. When I type "time", I want it to
reflect 08:00:00 instead of 8:00:00. I've changed my
regional settings to reflect the hh:mm:ss instead of
h:mm:ss, but that's not translating over to command line
prompt "time" which still reflects the single digit for
the hour prior to 10 AM.
Any ideas how?
RENAME pharm_comp_eldetail.txt tpaid_ars.%date:~10,2%%
date:~12,2%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%
the problem is the time doesn't reflect the leading zero
for the hour when the file rename is prior to a two
digit hour. I get a syntax error. However, if I wait
until the hour is a two digit (10 AM vs 8 AM), the sytax
error goes away. If I could get my system to reflect a
two digit hour for any time before 10 AM, I believe the
error would go away. When I type "time", I want it to
reflect 08:00:00 instead of 8:00:00. I've changed my
regional settings to reflect the hh:mm:ss instead of
h:mm:ss, but that's not translating over to command line
prompt "time" which still reflects the single digit for
the hour prior to 10 AM.
Any ideas how?