-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDos Choices - Nero.bat
80 lines (48 loc) · 2.39 KB
/
Dos Choices - Nero.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
@echo ===========
@echo == Created by Deon van Zyl
@echo == Date 1999
@echo == This file was created to allow for files in a certain directory (accessed as a virtual drive N) which relatest to the latest version of the software to be written on to a CD using Nero
@echo == Note: you will need Nero and to change paths if you want to use it
@echo == This also shows how input via choices can be taken and some error handling added
@echo ===========
@pause
Rem========================Setup Virtual Drive N:========================
REm Make a Directory called Current_version in drive c:
REM Run The following Line once from the Run Command (Start / Taskbar)
REM subst n: "c:\Current_version"
REM=============================End of Drive Setup=======================
Rem===============================INFO===================================
Rem 1. You have to have Nero Installed in it`s Defualt path
Rem 2. The Drive N that is used here is a Subst Drive for the "Current_version" Directory.
Rem 3. Everything in the "Current_version" Directory will be written so everytime a new version is made the files in this Directory have to be replace.
Rem 4. If this batch file is run on a WIn 9X system it will asked if you want to create another cd copy at the end of each write.
Rem=============================End OF INFO==============================
Rem===========================Start THe Copy=============================
@cls
@ECHO off
ECHO...
ECHO....Press any key to abort.....
ECHO...
ECHO...............................
@cd "C:\Program Files\ahead\Nero"
@nerocmd --write --drivename d --real --tao --title Setup --iso Setup --close_session --create_iso_fs --image n:\*.*
@Pause
cls
ECHO................................................
Rem===============================End Copy=================================
Rem======================Multiple Copy Section (FOr Win9X)======================
ECHO................................................
Echo Create another copy ?
choice /c:yn /n Press Y or N!
if errorlevel 2 goto Complete
if errorlevel 1 goto More
:More
@nerocmd --write --drivename d --real --tao --title Setup --iso Setup --close_session --create_iso_fs --image n:\*.*
ECHO................................................
ECHO................................................
Echo Create another copy ?
choice /c:yn /n Press Y or N!
if errorlevel 2 goto Complete
if errorlevel 1 goto More
:Complete
Exit