Getting a file to copy and open from a CD

trueparadox

New Member
Hello,

I'm working on making a spreadsheet automatically copy to the "My Documents" folder from a CD and open up from that location immediately after copying. Does anyone have any suggestions?

This is what I was able to make so far after some great help from someone. This is for the copy part of it.

@echo off
echo Copying Files from CD...
echo Please Wait...
::variables
set cdcopy=xcopy /s /c /e /h /i /r /y /d
set dest=%userprofile%\My Documents
set files=filename.ods


%cdcopy% "D:\%files%" "%dest%\"
%cdcopy% "E:\%files%" "%dest%\"
%cdcopy% "F:\%files%" "%dest%\"
%cdcopy% "G:\%files%" "%dest%\"
%cdcopy% "H:\%files%" "%dest%\"
%cdcopy% "I:\%files%" "%dest%\"
%cdcopy% "J:\%files%" "%dest%\"
%cdcopy% "K:\%files%" "%dest%\"
%cdcopy% "L:\%files%" "%dest%\"
%cdcopy% "M:\%files%" "%dest%\"
%cdcopy% "N:\%files%" "%dest%\"
%cdcopy% "O:\%files%" "%dest%\"
%cdcopy% "P:\%files%" "%dest%\"
%cdcopy% "Q:\%files%" "%dest%\"
%cdcopy% "R:\%files%" "%dest%\"
%cdcopy% "S:\%files%" "%dest%\"
%cdcopy% "T:\%files%" "%dest%\"
%cdcopy% "U:\%files%" "%dest%\"
%cdcopy% "V:\%files%" "%dest%\"
%cdcopy% "W:\%files%" "%dest%\"
%cdcopy% "X:\%files%" "%dest%\"
%cdcopy% "Y:\%files%" "%dest%\"
%cdcopy% "Z:\%files%" "%dest%\"

cls
echo Copy Complete...
Exit

I've started using this and this is is my problem.

It copies the file but afterward's displays this alert.
"There is no disk in the drive. Please insert a disk into drive \Device\Harddisk1\DR1,"
It then repeats it with "Harddisk2\DR2, Harddisk 3\DR3, and Harddisk 4\DR4"

Any suggestions?
 
If this is urgent to you,I can make you small program that can copy a file from anywhere you want to anywhere you want and after the copying is finished that that file opens immediately and program exits.It will be one simple EXE file.Is that okay?
 
Thanks for the reply,

I actually decided to do something else which will not involve copying the file at all. Thanks for the offer though!
 
Thanks for the reply,

I actually decided to do something else which will not involve copying the file at all. Thanks for the offer though!

LoL no problem.I am here to help.At least I think I am :confused: ...LoL I am just kidding,of course I am!:D Anyway just tell me what you need and I will see if I can help you.

Cheers dude!
 
Back
Top