Subject: Batch Files / WinXP / Disc-to-HD
Posted By: randomblink Post Date: 9/13/2006 11:54:12 AM
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:


:: 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

Go to topic 39698

Return to index page 176
Return to index page 175
Return to index page 174
Return to index page 173
Return to index page 172
Return to index page 171
Return to index page 170
Return to index page 169
Return to index page 168
Return to index page 167