A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

there is a system variable %DATE% that i have used in win 7. I can't find it.



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old March 6th 19, 04:58 AM posted to alt.windows7.general
No_Name
external usenet poster
 
Posts: 21
Default there is a system variable %DATE% that i have used in win 7. I can't find it.

there is a system variable %DATE% that i have used in win 7. it does not show up in command SET that
i can see.

It should be in the parent environment set......I think.

At a cmdline prompt you can type "echo %DATE%"

Where could it be?
Ads
  #2  
Old March 6th 19, 05:40 AM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default there is a system variable %DATE% that i have used in win 7. I can't find it.

jackpatton wrote:

there is a system variable %DATE% that i have used in win 7. it does
not show up in command SET that i can see.

It should be in the parent environment set......I think.

At a cmdline prompt you can type "echo %DATE%"

Where could it be?


There is no DATE environment variable defined by default. Running "set"
(no command-line switches or arguments) lists all the currently defined
environment variables (System and User vars). Date is not amongst them.

You could run the date or wmic commands whose stdout gets piped into a
DOS command that would then parse the stdout string. Examples are
mentioned at:

https://stackoverflow.com/questions/...-into-variable
https://www.windows-commandline.com/...me-batch-file/

Some DOS (console-mode) commands have built-in functions that are called
when specifying a placeholder or pseudo environment string, like %date%.
Run "set /?" to see a list of *dynamic* environment variables (aka
internal variables aka system information variables) that are accessible
(via internal function call) to that command. And, yes, the %dat%
dynamic environment variable *is* available to the set command but only
if command extensions are enabled in the shell in which you run the .bat
file or the .bat file uses setlocal or the /en switch to cmd.exe.
Because the stdout of date (and time) commands would always be changing,
they are inappropriate as static environment variables. See:

https://en.wikipedia.org/wiki/Enviro...able#Windows_2

The command shell (cmd.exe) must have command extensions enabled to
access the dynamic environment variables. When you load cmd.exe (or the
..bat that loads it), you need to make sure command extensions is enabled
(which it is not, by default); for example:

cmd.exe /en ...

or use:

setlocal enableextensions

before the .bat file calls cmd.exe.
  #4  
Old March 6th 19, 05:44 AM posted to alt.windows7.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default there is a system variable %DATE% that i have used in win 7.I can't find it.

wrote:
there is a system variable %DATE% that i have used in win 7. it does not show up in command SET that
i can see.

It should be in the parent environment set......I think.

At a cmdline prompt you can type "echo %DATE%"

Where could it be?


Near the bottom. No idea what it means.

https://ss64.com/nt/syntax-variables.html

"If Command Extensions are disabled, the following
dynamic variables will be not accessible:

%CD% %DATE% %TIME% %RANDOM% %ERRORLEVEL% %CMDEXTVERSION%
%CMDCMDLINE% %HIGHESTNUMANODENUMBER%
"

https://ss64.com/nt/cmd.html

cnd.exe /E:ON Extensions Enabled (Default)

Paul
  #5  
Old March 6th 19, 05:50 AM posted to alt.windows7.general
T
external usenet poster
 
Posts: 4,600
Default there is a system variable %DATE% that i have used in win 7. Ican't find it.

On 3/5/19 8:44 PM, Paul wrote:
wrote:
there is a system variable %DATE% that i have used in win 7.Â* it does
not show up inÂ* commandÂ* SET that
i can see.

It should be in the parent environment set......I think.

At a cmdline prompt you can type "echo %DATE%"

Where could it be?


Near the bottom. No idea what it means.

https://ss64.com/nt/syntax-variables.html

Â*Â* "If Command Extensions are disabled, the following
Â*Â*Â* dynamic variables will be not accessible:

Â*Â*Â* %CD% %DATE% %TIME% %RANDOM% %ERRORLEVEL% %CMDEXTVERSION%
Â*Â*Â* %CMDCMDLINE% %HIGHESTNUMANODENUMBER%
Â*Â* "

https://ss64.com/nt/cmd.html

Â*Â* cnd.exeÂ*Â* /E:ONÂ*Â* Extensions Enabled (Default)

Â* Paul


Paul nailed it (he typo'ed cmd):

cmd /en
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

echo %date%
Tue 03/05/2019

Paul, any way to turn these on permanently? -T

  #6  
Old March 6th 19, 05:54 AM posted to alt.windows7.general
T
external usenet poster
 
Posts: 4,600
Default there is a system variable %DATE% that i have used in win 7. Ican't find it.

On 3/5/19 8:44 PM, Paul wrote:
Â*Â*Â*cnd.exeÂ*Â*Â*/E:ON


cnd


'cnd' is not recognized as an internal or external command,
operable program or batch file.

"A-". (Minus for meanness. See I can grade papers too.)
Chuckle.


  #7  
Old March 6th 19, 07:47 AM posted to alt.windows7.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default there is a system variable %DATE% that i have used in win 7.I can't find it.

T wrote:
On 3/5/19 8:44 PM, Paul wrote:
cnd.exe /E:ON


cnd


'cnd' is not recognized as an internal or external command,
operable program or batch file.

"A-". (Minus for meanness. See I can grade papers too.)
Chuckle.



My eye sight is going.

I'm doing the best I can to proofread.

I was in to the eye clinic two days ago.
They couldn't see anything in a standard
"drops to dilate pupils, slit-lamp/scope" exam.

So I don't know what happens next.

It's not macular degeneration, as it's not
nearly the same pattern. These are dark areas,
arc shaped, outside the central area. One in
each eye. Different size. Different position.
There has to be some central visual degradation
as well, to account for my proofreading
problems. If the central problem became larger,
then it would be macular (as the center of your
visual field is the macula). Macular degeneration
is a lousy way to lose your sight (because you're
left with a tiny bit of peripheral vision you
can't use for anything - it's a kind of tease).

If the onset of any condition is rapid, I can't
see our medical system here responding fast enough
to help you. It took me around eight days to get
a ****ing appointment, with the appointment person
being as mean as she possibly could be. Having
been to that clinic before, and watched them bring
in some construction worker with an eye injury,
if you have a physical trauma, you go to the head
of the line. If your eyeball isn't hanging out,
"take a number"...

My eyesight isn't that bad (I can still drive), but
the potential for it to go south, is all too obvious
to me.

It just means I have to read things a couple times,
so I won't miss a typo.

Paul
  #8  
Old March 6th 19, 08:20 AM posted to alt.windows7.general
T
external usenet poster
 
Posts: 4,600
Default there is a system variable %DATE% that i have used in win 7. Ican't find it.

On 3/5/19 10:47 PM, Paul wrote:
T wrote:
On 3/5/19 8:44 PM, Paul wrote:
Â*Â*Â* cnd.exeÂ*Â* /E:ON


Â*cnd

'cnd' is not recognized as an internal or external command,
operable program or batch file.

"A-".Â* (Minus for meanness.Â* See I can grade papers too.)
Chuckle.



My eye sight is going.

I'm doing the best I can to proofread.

I was in to the eye clinic two days ago.
They couldn't see anything in a standard
"drops to dilate pupils, slit-lamp/scope" exam.

So I don't know what happens next.

It's not macular degeneration, as it's not
nearly the same pattern. These are dark areas,
arc shaped, outside the central area. One in
each eye. Different size. Different position.
There has to be some central visual degradation
as well, to account for my proofreading
problems. If the central problem became larger,
then it would be macular (as the center of your
visual field is the macula). Macular degeneration
is a lousy way to lose your sight (because you're
left with a tiny bit of peripheral vision you
can't use for anything - it's a kind of tease).

If the onset of any condition is rapid, I can't
see our medical system here responding fast enough
to help you. It took me around eight days to get
a ****ing appointment, with the appointment person
being as mean as she possibly could be. Having
been to that clinic before, and watched them bring
in some construction worker with an eye injury,
if you have a physical trauma, you go to the head
of the line. If your eyeball isn't hanging out,
"take a number"...

My eyesight isn't that bad (I can still drive), but
the potential for it to go south, is all too obvious
to me.

It just means I have to read things a couple times,
so I won't miss a typo.

Â*Â* Paul


Hi Paul,

Me? I don't have an excuse. I think I see what I see right up until
I press "send". But I will blame Publik Skool anyway. :-)

Mu wife has researched this extensively.


Maybe these two supplements will help?

From our National Health Service:

Associations between lutein, zeaxanthin, and age-related macular
degeneration: an overview.
https://www.ncbi.nlm.nih.gov/pubmed/19234943

The Role of Lutein in Eye-Related Disease
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3708350/


Sources:

https://www.vitacost.com/vitacost-sy...t=835003008391
835003008391 Vitacost Lutein 20 mg with Zeaxanthin Featuring FloraGlo®
Lutein

https://www.swansonvitamins.com/swan...-4-mg-60-sgels
SWU254 Swanson Ultra Zeaxanthin

-T

  #9  
Old March 6th 19, 08:20 AM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default there is a system variable %DATE% that i have used in win 7. I can't find it.

Paul wrote:

T wrote:
On 3/5/19 8:44 PM, Paul wrote:
cnd.exe /E:ON


cnd


'cnd' is not recognized as an internal or external command,
operable program or batch file.

"A-". (Minus for meanness. See I can grade papers too.)
Chuckle.


My eye sight is going.

I'm doing the best I can to proofread.

I was in to the eye clinic two days ago.
They couldn't see anything in a standard
"drops to dilate pupils, slit-lamp/scope" exam.

So I don't know what happens next.

It's not macular degeneration, as it's not
nearly the same pattern. These are dark areas,
arc shaped, outside the central area. One in
each eye. Different size. Different position.
There has to be some central visual degradation
as well, to account for my proofreading
problems. If the central problem became larger,
then it would be macular (as the center of your
visual field is the macula). Macular degeneration
is a lousy way to lose your sight (because you're
left with a tiny bit of peripheral vision you
can't use for anything - it's a kind of tease).

If the onset of any condition is rapid, I can't
see our medical system here responding fast enough
to help you. It took me around eight days to get
a ****ing appointment, with the appointment person
being as mean as she possibly could be. Having
been to that clinic before, and watched them bring
in some construction worker with an eye injury,
if you have a physical trauma, you go to the head
of the line. If your eyeball isn't hanging out,
"take a number"...

My eyesight isn't that bad (I can still drive), but
the potential for it to go south, is all too obvious
to me.

It just means I have to read things a couple times,
so I won't miss a typo.

Paul


A problem with proofreading your own writing is that your mind tends to
see what it expects to see. It is often harder to notice your own
mistakes than for someone else.
  #10  
Old March 6th 19, 08:35 AM posted to alt.windows7.general
T
external usenet poster
 
Posts: 4,600
Default there is a system variable %DATE% that i have used in win 7. Ican't find it.

On 3/5/19 11:20 PM, VanguardLH wrote:
Paul wrote:

T wrote:
On 3/5/19 8:44 PM, Paul wrote:
cnd.exe /E:ON

cnd

'cnd' is not recognized as an internal or external command,
operable program or batch file.

"A-". (Minus for meanness. See I can grade papers too.)
Chuckle.


My eye sight is going.

I'm doing the best I can to proofread.

I was in to the eye clinic two days ago.
They couldn't see anything in a standard
"drops to dilate pupils, slit-lamp/scope" exam.

So I don't know what happens next.

It's not macular degeneration, as it's not
nearly the same pattern. These are dark areas,
arc shaped, outside the central area. One in
each eye. Different size. Different position.
There has to be some central visual degradation
as well, to account for my proofreading
problems. If the central problem became larger,
then it would be macular (as the center of your
visual field is the macula). Macular degeneration
is a lousy way to lose your sight (because you're
left with a tiny bit of peripheral vision you
can't use for anything - it's a kind of tease).

If the onset of any condition is rapid, I can't
see our medical system here responding fast enough
to help you. It took me around eight days to get
a ****ing appointment, with the appointment person
being as mean as she possibly could be. Having
been to that clinic before, and watched them bring
in some construction worker with an eye injury,
if you have a physical trauma, you go to the head
of the line. If your eyeball isn't hanging out,
"take a number"...

My eyesight isn't that bad (I can still drive), but
the potential for it to go south, is all too obvious
to me.

It just means I have to read things a couple times,
so I won't miss a typo.

Paul


A problem with proofreading your own writing is that your mind tends to
see what it expects to see. It is often harder to notice your own
mistakes than for someone else.



Very true, especially for me.

I remember a colleague of mine take could not get a Pascal
program to work for his life. He asked me to look at it.
He had typo'ed something and saw what he expected to see.
Blew his mind when I pointed it out to him in about 5 seconds
flat.

When writing in Perl 6, I often have to ask the mailing
list for a second pair of eyes. And it is ALWAYS right under
my nose.

Paul is fun to give a bad time over it to as he is a
retired skool teacher.

And I just typo'ed "Mu Wife". Said "My" right up until
I pressed send.

  #11  
Old March 6th 19, 05:50 PM posted to alt.windows7.general
Rene Lamontagne
external usenet poster
 
Posts: 2,549
Default there is a system variable %DATE% that i have used in win 7. Ican't find it.

On 03/06/2019 12:47 AM, Paul wrote:
T wrote:
On 3/5/19 8:44 PM, Paul wrote:
Â*Â*Â* cnd.exeÂ*Â* /E:ON


Â*cnd

'cnd' is not recognized as an internal or external command,
operable program or batch file.

"A-".Â* (Minus for meanness.Â* See I can grade papers too.)
Chuckle.



My eye sight is going.

I'm doing the best I can to proofread.

I was in to the eye clinic two days ago.
They couldn't see anything in a standard
"drops to dilate pupils, slit-lamp/scope" exam.

So I don't know what happens next.

It's not macular degeneration, as it's not
nearly the same pattern. These are dark areas,
arc shaped, outside the central area. One in
each eye. Different size. Different position.
There has to be some central visual degradation
as well, to account for my proofreading
problems. If the central problem became larger,
then it would be macular (as the center of your
visual field is the macula). Macular degeneration
is a lousy way to lose your sight (because you're
left with a tiny bit of peripheral vision you
can't use for anything - it's a kind of tease).

If the onset of any condition is rapid, I can't
see our medical system here responding fast enough
to help you. It took me around eight days to get
a ****ing appointment, with the appointment person
being as mean as she possibly could be. Having
been to that clinic before, and watched them bring
in some construction worker with an eye injury,
if you have a physical trauma, you go to the head
of the line. If your eyeball isn't hanging out,
"take a number"...

My eyesight isn't that bad (I can still drive), but
the potential for it to go south, is all too obvious
to me.

It just means I have to read things a couple times,
so I won't miss a typo.

Â*Â* Paul

Hi Paul, Very sorry to hear of your vision problems. its a real downer,
My older brother has macular degenerate and as you note he has just a
little peripheral vision. I hope its not that, and hope their is some
cure or alleviation.
I was born with ****-poor vision and have been wearing coke bottle
glasses since I was 4, I am a part Albino and lack pigment in my retina.
People used to laugh at me because the tip of my nose was always black
from rubbing on the pages when I read a book. :-)
I have a 27 inch monitor and text size at 150% my standard reading
distance is about 8 inches but I manage.
So hang in there and good luck, Were pulling for you.

Rene


  #12  
Old March 6th 19, 06:00 PM posted to alt.windows7.general
No_Name
external usenet poster
 
Posts: 21
Default there is a system variable %DATE% that i have used in win 7. I can't find it.

On Tue, 05 Mar 2019 23:44:58 -0500, Paul wrote:

wrote:
there is a system variable %DATE% that i have used in win 7. it does not show up in command SET that
i can see.

It should be in the parent environment set......I think.

At a cmdline prompt you can type "echo %DATE%"

Where could it be?


Near the bottom. No idea what it means.

https://ss64.com/nt/syntax-variables.html

"If Command Extensions are disabled, the following
dynamic variables will be not accessible:

%CD% %DATE% %TIME% %RANDOM% %ERRORLEVEL% %CMDEXTVERSION%
%CMDCMDLINE% %HIGHESTNUMANODENUMBER%
"

https://ss64.com/nt/cmd.html

cnd.exe /E:ON Extensions Enabled (Default)

Paul


BINGO! Thanks, Paul. That explains why it was not in the environment output from cmd SET but can be
echoed as if it were an environment variable.

Several years ago i used it in a batch file to mankipulate the string and make it a filename insertable
format. I just dumped the slashes and day prefix since slash is not allowable in a filename. So
"Tues 03/05/2019 became "03052019"

this is the batch file that i wrote which i have found very useful to keep up with file currency and
creartion date of archive files:

~~~~~~~~~~~~~~~~~~

echo %date%

set mth=%Date:~4,2%
set day=%Date:~7,2%
set yr=%Date:~10,4%

echo %mth%%day%%yr%

set shortdate=%mth%%day%%yr%

echo %shortdate%

~~~~~~~~~~~~~~~~~~

of course i could reduce the output but i like to have an idea of progress at certain points and the
final outcome...... :-)






  #13  
Old March 6th 19, 06:05 PM posted to alt.windows7.general
Bill in Co[_3_]
external usenet poster
 
Posts: 303
Default there is a system variable %DATE% that i have used in win 7. I can't find it.

Paul wrote:
T wrote:
On 3/5/19 8:44 PM, Paul wrote:
cnd.exe /E:ON


cnd


'cnd' is not recognized as an internal or external command,
operable program or batch file.

"A-". (Minus for meanness. See I can grade papers too.)
Chuckle.



My eye sight is going.

I'm doing the best I can to proofread.

I was in to the eye clinic two days ago.
They couldn't see anything in a standard
"drops to dilate pupils, slit-lamp/scope" exam.

So I don't know what happens next.

It's not macular degeneration, as it's not
nearly the same pattern. These are dark areas,
arc shaped, outside the central area. One in
each eye. Different size. Different position.
There has to be some central visual degradation
as well, to account for my proofreading
problems. If the central problem became larger,
then it would be macular (as the center of your
visual field is the macula). Macular degeneration
is a lousy way to lose your sight (because you're
left with a tiny bit of peripheral vision you
can't use for anything - it's a kind of tease).

If the onset of any condition is rapid, I can't
see our medical system here responding fast enough
to help you. It took me around eight days to get
a ****ing appointment, with the appointment person
being as mean as she possibly could be. Having
been to that clinic before, and watched them bring
in some construction worker with an eye injury,
if you have a physical trauma, you go to the head
of the line. If your eyeball isn't hanging out,
"take a number"...

My eyesight isn't that bad (I can still drive), but
the potential for it to go south, is all too obvious
to me.

It just means I have to read things a couple times,
so I won't miss a typo.

Paul


It sounds serious enough to me that you ought to try to go in either there
(or at another clinic) and get a second test, perhaps with a different
opthalmalogist. I'm assuming we're talking about the retina here, and you
don't want to wait that out and take your chances. The good news is that
you're in Canada (IIRC), so this should be covered, even if the wait time
and "front desk" is a PIA. Has it gotten any worse over time, or stayed
pretty much the same? That also might indicate the degree of urgency.
Frankly, I'm baffled that the slit lamp didn't reveal anything, given what
you've said.


  #14  
Old March 6th 19, 06:15 PM posted to alt.windows7.general
Bill in Co[_3_]
external usenet poster
 
Posts: 303
Default there is a system variable %DATE% that i have used in win 7. I can't find it.

Rene Lamontagne wrote:
On 03/06/2019 12:47 AM, Paul wrote:
T wrote:
On 3/5/19 8:44 PM, Paul wrote:
cnd.exe /E:ON

cnd

'cnd' is not recognized as an internal or external command,
operable program or batch file.

"A-". (Minus for meanness. See I can grade papers too.)
Chuckle.



My eye sight is going.

I'm doing the best I can to proofread.

I was in to the eye clinic two days ago.
They couldn't see anything in a standard
"drops to dilate pupils, slit-lamp/scope" exam.

So I don't know what happens next.

It's not macular degeneration, as it's not
nearly the same pattern. These are dark areas,
arc shaped, outside the central area. One in
each eye. Different size. Different position.
There has to be some central visual degradation
as well, to account for my proofreading
problems. If the central problem became larger,
then it would be macular (as the center of your
visual field is the macula). Macular degeneration
is a lousy way to lose your sight (because you're
left with a tiny bit of peripheral vision you
can't use for anything - it's a kind of tease).

If the onset of any condition is rapid, I can't
see our medical system here responding fast enough
to help you. It took me around eight days to get
a ****ing appointment, with the appointment person
being as mean as she possibly could be. Having
been to that clinic before, and watched them bring
in some construction worker with an eye injury,
if you have a physical trauma, you go to the head
of the line. If your eyeball isn't hanging out,
"take a number"...

My eyesight isn't that bad (I can still drive), but
the potential for it to go south, is all too obvious
to me.

It just means I have to read things a couple times,
so I won't miss a typo.

Paul

Hi Paul, Very sorry to hear of your vision problems. its a real downer,
My older brother has macular degenerate and as you note he has just a
little peripheral vision. I hope its not that, and hope their is some
cure or alleviation.
I was born with ****-poor vision and have been wearing coke bottle
glasses since I was 4, I am a part Albino and lack pigment in my retina.
People used to laugh at me because the tip of my nose was always black
from rubbing on the pages when I read a book. :-)
I have a 27 inch monitor and text size at 150% my standard reading
distance is about 8 inches but I manage.
So hang in there and good luck, Were pulling for you.

Rene


Sorry to hear about your and your brother's case too. I don't think there
is any cure for macular degeneration, even at this late date! IIRC, there
are two types, the wet and dry type, and I can't recall which one is worse.
But either way, it's pretty bad. I think there is an inheritable component
to MD too, as it usually comes along with high myopia (IIRC), which is
inherited.


  #15  
Old March 6th 19, 06:22 PM posted to alt.windows7.general
No_Name
external usenet poster
 
Posts: 21
Default there is a system variable %DATE% that i have used in win 7. I can't find it.

On Tue, 5 Mar 2019 22:40:20 -0600, VanguardLH wrote:

jackpatton wrote:

there is a system variable %DATE% that i have used in win 7. it does
not show up in command SET that i can see.

It should be in the parent environment set......I think.

At a cmdline prompt you can type "echo %DATE%"

Where could it be?


There is no DATE environment variable defined by default. Running "set"
(no command-line switches or arguments) lists all the currently defined
environment variables (System and User vars). Date is not amongst them.

You could run the date or wmic commands whose stdout gets piped into a
DOS command that would then parse the stdout string. Examples are
mentioned at:

https://stackoverflow.com/questions/...-into-variable
https://www.windows-commandline.com/...me-batch-file/

Some DOS (console-mode) commands have built-in functions that are called
when specifying a placeholder or pseudo environment string, like %date%.
Run "set /?" to see a list of *dynamic* environment variables (aka
internal variables aka system information variables) that are accessible
(via internal function call) to that command. And, yes, the %dat%
dynamic environment variable *is* available to the set command but only
if command extensions are enabled in the shell in which you run the .bat
file or the .bat file uses setlocal or the /en switch to cmd.exe.
Because the stdout of date (and time) commands would always be changing,
they are inappropriate as static environment variables. See:

https://en.wikipedia.org/wiki/Enviro...able#Windows_2

The command shell (cmd.exe) must have command extensions enabled to
access the dynamic environment variables. When you load cmd.exe (or the
.bat that loads it), you need to make sure command extensions is enabled
(which it is not, by default); for example:

cmd.exe /en ...

or use:

setlocal enableextensions

before the .bat file calls cmd.exe.


"command extensions" was new to me. Thanks.

 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 10:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.