Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Directory creation with a today's date

Reply
 
Old 08-16-2009   #1 (permalink)


Vista Home Premium x64
 
 

Directory creation with a today's date

First, I'm not a n00b, but I'm no expert either, so details are appreciated.
That said, here are the details. First, Windows 2000, then Windows XP I had a reg entry at

[HKEY_CLASSES_ROOT\Directory\shell\New Subfolder YYYYMMDD\command]
@="cmd.exe /c FOR /F "tokens=1-3 delims=/ " %%I IN ('DATE /t') DO md %%K%%I%%J"

I remember having to modify the entry for XP when I upgraded to XP for the DATE /t being in a different format on the new machine. Now, I'm trying to get this to work on a Vista Home Premium x64 flavor of Windows, and can't seem to get it to work. The command window is so quick, I can't see the error message, and I don't know how to get the command window to stay open. I can open a command window, and change the above command to read

cmd.exe /c for /F "tokens=1-4 delims=/ " %I in ('DATE /t') DO md %L%J%K

this will actually create a subdirectory for me, but I'm unable to get this to work in windows explorer when I right click an existing directory. Any help, greatly appreciated, as I use this several times a day, and sometimes, serveral times an hour.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
File with name <.today's date> on my desktop Vista General
Set File Creation Date VB Script
How do I get a folder's creation date? PowerShell
How can I preserve creation date in a Copy? Vista file management
sort by file creation date Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46