Make a new folder

Discussion in 'Windows Desktop Systems' started by celticfan11, Oct 11, 2007.

  1. celticfan11

    celticfan11 Moderator

    Messages:
    744
    Location:
    Vernon, CT
    If i do this command MD %Date:~-4,4%-%Date:~-10,2%-%Date:~-7,2%
    it creates a folder named 2007-10-11

    How do i do something similar using the %time% parameter. I cannot figure this one out.
     
  2. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    echo %Time:~0,2%
    echo %Time:~3,2%

    prints hours and minutes for me
     
    celticfan11 likes this.
  3. celticfan11

    celticfan11 Moderator

    Messages:
    744
    Location:
    Vernon, CT

    hmm i thought i tried that, i must have made a typo