Ik heb een batch file gemaakt welke elk uur een bepaalde wav file laat afspelen.
Nu werkt deze batch perfect onder dos-prompt van windows XP, maar op een systeem waar ik MS-DOS 6.22 geinstalleerd heb (Pentium 75) werkt deze niet.
In ieder geval werkt hij niet zoals hij zou moeten werken.
Ik ben geen newbie in ms-dos, maar dit lukt mij toch niet goed.
HIER kan je het compleet pakket (32 Kb) downloaden inclusief 2 extra .exe files die hier nodig zijn ....
Wat doe ik verkeerd ? ik wil het dus op mijn p75 laten werken (onder ms-dos 6.22) zoals hij werkt onder windows XP (ms-dos prompt).
Nu werkt deze batch perfect onder dos-prompt van windows XP, maar op een systeem waar ik MS-DOS 6.22 geinstalleerd heb (Pentium 75) werkt deze niet.
In ieder geval werkt hij niet zoals hij zou moeten werken.
Ik ben geen newbie in ms-dos, maar dit lukt mij toch niet goed.
code:
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
| @echo off set waitsec=%1 if not "%1%" == "" goto WAIT envtime > settime1.bat call settime1 del settime1.bat set waitsec=10 if "%MIN%" == "00" set waitsec=3540 if "%MIN%" == "01" set waitsec=3480 if "%MIN%" == "02" set waitsec=3420 if "%MIN%" == "03" set waitsec=3360 if "%MIN%" == "04" set waitsec=3300 if "%MIN%" == "05" set waitsec=3240 if "%MIN%" == "06" set waitsec=3180 if "%MIN%" == "07" set waitsec=3120 if "%MIN%" == "08" set waitsec=3060 if "%MIN%" == "09" set waitsec=3000 if "%MIN%" == "10" set waitsec=2940 if "%MIN%" == "11" set waitsec=2880 if "%MIN%" == "12" set waitsec=2820 if "%MIN%" == "13" set waitsec=2760 if "%MIN%" == "14" set waitsec=2700 if "%MIN%" == "15" set waitsec=2640 if "%MIN%" == "16" set waitsec=2580 if "%MIN%" == "17" set waitsec=2520 if "%MIN%" == "18" set waitsec=2460 if "%MIN%" == "19" set waitsec=2400 if "%MIN%" == "20" set waitsec=2340 if "%MIN%" == "21" set waitsec=2280 if "%MIN%" == "22" set waitsec=2220 if "%MIN%" == "23" set waitsec=2160 if "%MIN%" == "24" set waitsec=2100 if "%MIN%" == "25" set waitsec=2040 if "%MIN%" == "26" set waitsec=1980 if "%MIN%" == "27" set waitsec=1920 if "%MIN%" == "28" set waitsec=1860 if "%MIN%" == "29" set waitsec=1800 if "%MIN%" == "30" set waitsec=1740 if "%MIN%" == "31" set waitsec=1680 if "%MIN%" == "32" set waitsec=1620 if "%MIN%" == "33" set waitsec=1560 if "%MIN%" == "34" set waitsec=1500 if "%MIN%" == "35" set waitsec=1440 if "%MIN%" == "36" set waitsec=1380 if "%MIN%" == "37" set waitsec=1320 if "%MIN%" == "38" set waitsec=1260 if "%MIN%" == "39" set waitsec=1200 if "%MIN%" == "40" set waitsec=1140 if "%MIN%" == "41" set waitsec=1080 if "%MIN%" == "42" set waitsec=1020 if "%MIN%" == "43" set waitsec=960 if "%MIN%" == "44" set waitsec=900 if "%MIN%" == "45" set waitsec=840 if "%MIN%" == "46" set waitsec=780 if "%MIN%" == "47" set waitsec=720 if "%MIN%" == "48" set waitsec=660 if "%MIN%" == "49" set waitsec=600 if "%MIN%" == "50" set waitsec=540 if "%MIN%" == "51" set waitsec=480 if "%MIN%" == "52" set waitsec=420 if "%MIN%" == "53" set waitsec=360 if "%MIN%" == "54" set waitsec=300 if "%MIN%" == "55" set waitsec=240 if "%MIN%" == "56" set waitsec=180 if "%MIN%" == "57" set waitsec=120 if "%MIN%" == "58" set waitsec=60 if "%MIN%" == "59" set waitsec=0 :WAIT wait %waitsec% set waitsec=3540 :LOOP cls echo %TIME% if "%TIME%" == "00:00:00,00" goto STARTWAV if "%TIME%" == "01:00:00,00" goto STARTWAV if "%TIME%" == "02:00:00,00" goto STARTWAV if "%TIME%" == "03:00:00,00" goto STARTWAV if "%TIME%" == "04:00:00,00" goto STARTWAV if "%TIME%" == "05:00:00,00" goto STARTWAV if "%TIME%" == "06:00:00,00" goto STARTWAV if "%TIME%" == "07:00:00,00" goto STARTWAV if "%TIME%" == "08:00:00,00" goto STARTWAV if "%TIME%" == "09:00:00,00" goto STARTWAV if "%TIME%" == "10:00:00,00" goto STARTWAV if "%TIME%" == "11:00:00,00" goto STARTWAV if "%TIME%" == "12:00:00,00" goto STARTWAV if "%TIME%" == "13:00:00,00" goto STARTWAV if "%TIME%" == "14:00:00,00" goto STARTWAV if "%TIME%" == "15:00:00,00" goto STARTWAV if "%TIME%" == "16:00:00,00" goto STARTWAV if "%TIME%" == "17:00:00,00" goto STARTWAV if "%TIME%" == "18:00:00,00" goto STARTWAV if "%TIME%" == "19:00:00,00" goto STARTWAV if "%TIME%" == "20:00:00,00" goto STARTWAV if "%TIME%" == "21:00:00,00" goto STARTWAV if "%TIME%" == "22:00:00,00" goto STARTWAV if "%TIME%" == "23:00:00,00" goto STARTWAV goto LOOP :STARTWAV volume.exe line-in:0 PLAY.EXE tijdsein.wav volume.exe line-in:100 goto WAIT |
HIER kan je het compleet pakket (32 Kb) downloaden inclusief 2 extra .exe files die hier nodig zijn ....
Wat doe ik verkeerd ? ik wil het dus op mijn p75 laten werken (onder ms-dos 6.22) zoals hij werkt onder windows XP (ms-dos prompt).
Asus Cusl2-c - Intel P3-800 Mhz - 512 Mb Ram - Asus V7700 (Ge-force 2 GTS) - Plextor 40/12/40A CD-writer - SB-audigy - 2x40 Gb HD - Cambridge FPS-1000 Speakers - IIYAMA AS4611UT LCD Monitor - MS Optical Wheel Mouse - Windows XP Professional (Engels)