Language: NoFormat
DosKey Macro to Make a TimeStamped Directory
mtsd=echo off &&for /F "tokens=2,3,4 delims=/ " %i in ('date /t') do set dtName=%k%i%j$Tfor /F "tokens=1,2,3 delims=: " %i in ('time /t') do set dtName=%dtName%_%i%j%k$Tmd $1%dtName%$2$Tset dtName=&& echo on
Tags:
Description:
Assuming the date and time of 10 Feb 2010 at 5:26pm a directory will be created with the following name: 20060210_0526PM
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

