RSS

time variables in a dos batch file

11 Jan

set timenow=%time:~0,2%:%time:~3,2%

%timenow% returns the current time

Advertisements
 
Leave a comment

Posted by on January 11, 2011 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: