View Single Post
  #1 (permalink)  
Old September 13th, 2006, 11:54 AM
randomblink randomblink is offline
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to randomblink Send a message via AIM to randomblink Send a message via MSN to randomblink Send a message via Yahoo to randomblink
Default Batch Files / WinXP / Disc-to-HD

Alrighty then...

I have a stack of files on one ( up to two ) CD's. I want to transfer files OFF of the CD's ONTO the Hard-drive.

I currently was using this:

Code:
:: disc_one_updater.bat
:: This file updates the engineeringAtlas files on c from DISC 1
:: Then it prompts the user to replace disc 1 with disc 2
::
@ECHO OFF
for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%a:\autorun.inf set CDROM=%%a
xcopy %CDROM%:\TransferFiles_Disc1 C:\ /Y /E

:STEP_I
IF EXIST %CDROM%:\TransferFiles_Disc2\nul GOTO STEP_2
CLS
ECHO ****************************************************
ECHO *                                                  *
ECHO * PLEASE REPLACE DISC 1 WITH DISC 2 PLEASE.        *
ECHO *                                                  *
ECHO ****************************************************
GOTO STEP_I

:STEP_2
CLS
ECHO ****************************************************
ECHO *                                                  *
ECHO * THANK YOU. COMMENCING WITH UPDATE.        *
ECHO *                                                  *
ECHO ****************************************************
for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%a:\autorun.inf set CDROM=%%a
xcopy %CDROM%:\TransferFiles_Disc2 C:\ /Y /E

:STEP_3
IF NOT EXIST %CDROM%:\nul GOTO THEEND
CLS
ECHO ****************************************************
ECHO *                                                  *
ECHO * THANKS! PLEASE REMOVE DISC 2 FROM THE DRIVE NOW. *
ECHO * UPDATE FINISHED!                                 *
ECHO *                                                  *
ECHO ****************************************************
GOTO STEP_3

:THEEND
EXIT
Now this worked WHEN I HAD ADMINSTRATOR rights... But when I drop it into a regular LapTop with WinXP, XP craps all over it. It completely Bypasses the XCOPY command. Ignores it...

Anyone have a working solution already? Or at least a pointer for me? I am fairly competent with BATCH Files, but I would be open to other solutions.

Thanks In Advance!

Come Visit The Crazies
www.ninjasquirrels.com
Reply With Quote