Jump to content

Recommended Posts

Posted

I am trying to write something, I need the output of a command, how would I be able to store that into a variable and parse it, I can get it into Comma Deliminated format.

Any thoughts? Thanks.


Posted

@echo off

date /t > c:\temp\date.txt

set /p TODAY=<c:\temp\date.txt

echo Today is %TODAY%

How is that, for starters?

-John

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...