k2k 5 Posting Whiz

sounds it should be simple but I wasn't able to google this out.

basically i want to do something like

variable = `data` //from unix but I now need it for windows bat script
//windows 
set today = "date /t" //output is what i need, but wrong syntax
set today = %DATE%  // sort of work, but I just need the mm/dd/yy, i don't need the "Mon 11/22/2010" kind of format

is there a way to assign a cmd output to a varible in bat script?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.