Re: batch file scripting

  • From: "Jared Still" <jkstill@xxxxxxxxx>
  • To: "Steve Perry" <sperry@xxxxxxxxxxx>
  • Date: Thu, 20 Jul 2006 14:09:20 -0700

On 7/19/06, Steve Perry <sperry@xxxxxxxxxxx> wrote:


that only takes 2 lines :)))

C:\>set f=myfile_%date:~10,4%-%date:~4,2%-%date:~7,2%
C:\>echo %f%
myfile_2006-07-19


First time I have seen that.

Clearly I need to read some up to date docs on the CMD shell next time I try
to use it.

--
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

Other related posts: