Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple batch file

Status
Not open for further replies.

phlashriot

Technical User
Sep 4, 2014
1
US
I want to make a simple executable file that will copy a specified text file to a usable Windows compatable CD-R.

I have already figured out how to copy the file manually create the ISO and burn to a CD-R but i want to make it so i can run one batch type file from any user. This batch file will navigate to the correct directory, ask the user what file is to be copied, then the batch file will continue on its own to finish the rest of the tasks nessasary to make the ISO and burn the CD-R and delete the iso file it created.
I guess all I need help with is the user prompt portion of the batch file and any bright ideas
Here is the currect commands that i use to make the CD-R

cd /file/is/here
cp (file name) /tmp/cdromdir
cd /tmp/cdromdir
mkisofs -L -l -v -r -o /tmp/cdimg.iso
cdrecord -V /tmp/cdimg.iso

Thanks in advance for the assist.
 
Have a look at the echo and read internal commands.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top