Assumption: Windows 2000 or later.

----cut here, save to nameofyourchoice.cmd----
@echo off
setlocal
if [EMAIL PROTECTED]@ goto :help
if [EMAIL PROTECTED]@ goto :help
set /a limit=%2+%1-1
for /l %%i in (%2,1,%limit%) do call :copyflop %%i
goto :eof

:copyflop
md "AtoC%1"
xcopy /s a:*.* "AtoC%1"
goto :eof

:help
echo Usage:
echo.
echo    %0 floppycount startindex
echo.
echo where floppycount = number of floppies to be copied
echo       startindex = starting number index included in folder name
goto :eof 
----cut here----

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%"

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

copying the contents of floppies to a folder on the c:drive.  would someone
please add a line in there for me to add a sequence to the file name so that
it becomes AtoC1, AtoC2, etc.  Also, what is the line to add the time the
folder AtoC was created?

Thanks, Karen
---------------------------
C:
md %1AtoC
xcopy a:*.* \%1AtoC /s

--
                ----------------------------------------
To unsubscribe, mailto: [EMAIL PROTECTED]
Is your picture included in the Official Win-Home List Members Profiles Page?
 http://www.besteffort.com/winhome/Profiles.html
If not, write to: [EMAIL PROTECTED]

Reply via email to