1.

Solve : creating a folder and naming it the current date?

Answer»

can a .bat file be used to create a folder and name it the CURRENT system date. I've tried several different COMMANDS, but no LUCK. I am trying to create a backup script that will create a folder on a local h.d., name it the current date, copy files to it, and send the new directory to a cd-rw.
Any suggestions. ThanksThis may work on your system, then again it may not:

CODE: [Select]@echo off
for /f "tokens=2-4 delims=/ " %%i in ("%date%") do (md %%i-%%j-%%k)

You can arrange the variables i, j, k in any sequence you want.

8-)

We can CUSTOMIZE our response to your system if you'd only mention your OS.



Discussion

No Comment Found