%time:~0,5%

That's an interesting way to parse the date but I guess it works.

If you have any interest in undestanding what all that means, open a cmd
prompt and type

   set /?

Carl

-----Original Message-----
From: Windows Home/SOHO [mailto:[EMAIL PROTECTED] On Behalf Of
K. F.
Sent: Tuesday, July 18, 2006 8:09 PM
To: [email protected]
Subject: Re: batch file A to C

Carl,

Yes, windowsXP home.

I dont know about the rest, but I do know that date works for me in this 
format:
%Date:~-10,2%-%Date:~-7,2%-%Date:~-2,4%\

Can you tell me exact format for time hh:mm?

Thanks, Karen

-----Original Message-----
From: Carl Houseman [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 5:02 PM
To: 'Windows Home/SOHO'
Subject: RE: batch file A to C

Assumption: Windows 2000 or later.

<snip>
To include the date and time in the folder name, change two lines to these
instead:

md "AtoC%1 %date% %time%"
xcopy /s a:*.* "AtoC%1 %date% %time%"

--
                ----------------------------------------
To Change your email Address for this list, send the following message:
 CHANGE  WIN-HOME  your_old_address  your_new_address
 to:  [EMAIL PROTECTED]
Note carefully that both old and new addresses are required.

--
                ----------------------------------------
To Change your email Address for this list, send the following message:
 CHANGE  WIN-HOME  your_old_address  your_new_address
 to:  [EMAIL PROTECTED]
Note carefully that both old and new addresses are required.

Reply via email to