Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > Other Programming Languages
|
Other Programming Languages If you have a coding issue to discuss about another language that really isn't provided for in any other forum here (not ASP.NET C#, C++, VB, PHP, JavaScript, Python, Java, Perl, Applescript, XML or any of the other forum topics we have), post it here. Enough discussion on a language we don't have covered could prompt a new forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Other Programming Languages section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 13th, 2006, 11:54 AM
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to cache image from users hd? Pachuca PHP How-To 0 October 11th, 2006 10:58 AM
Problem to run batch files from VB application Dmitriy VB How-To 7 September 13th, 2006 11:42 AM
Problem to run batch files from VB Application Dmitriy Pro VB 6 4 April 13th, 2006 02:27 AM
Burn data to disc snowydust Pro VB.NET 2002/2003 0 August 16th, 2005 11:17 PM
How do you save an html page on your local hd? rsalah Javascript How-To 16 January 27th, 2005 01:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.