<Slapping forehead> Duh. Thanks. I knew that, but apparently not today...

From: Rankin, James R [mailto:[email protected]]
Sent: Friday, May 18, 2012 8:51 AM
To: NT System Admin Issues
Subject: Re: WTF (VER in batch, Win7)

Was just going to say that...its a command not a variable
---Blackberried
________________________________
From: Miller Bonnie L. 
<[email protected]<mailto:[email protected]>>
Date: Fri, 18 May 2012 08:40:43 -0700
To: NT System Admin 
Issues<[email protected]<mailto:[email protected]>>
ReplyTo: "NT System Admin Issues" 
<[email protected]<mailto:[email protected]>>
Subject: RE: WTF (VER in batch, Win7)

I don't have a %ver% variable... do you mean to do this?

ver > "c:\automate\Results.txt"

From: David Lum [mailto:[email protected]]<mailto:[mailto:[email protected]]>
Sent: Friday, May 18, 2012 8:36 AM
To: NT System Admin Issues
Subject: WTF (VER in batch, Win7)

This works as expected:
echo %computername% > "c:\automate\Results.txt"

This does not: (The TXT file contains %ver% instead of the expected "Microsoft 
Windows [Version 6.1.7601]")
echo %ver% > "c:\automate\Results.txt"

Anyone?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to