source: branches/v2.9/classes/bin/removeEA.CMD@ 15

Last change on this file since 15 was 2, checked in by stevenhl, 8 years ago

Import sources from cwmm-full.zip dated 2005-03-21

File size: 1.4 KB
Line 
1/*
2 rexx - Remove .CLASSINFO EA and set .TYPE EA
3*/
4
5call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
6call SysLoadFuncs
7
8theFolder=ARG(1)
9
10
11IF theFolder="" THEN DO
12call usage
13'PAUSE'
14EXIT
15END
16
17SAY
18SAY
19call usage2
20SAY
21SAY 'Type Control-C to abort.'
22'PAUSE'
23
24rc=SySFileTree(theFolder'\*.mp3', 'mp3s', 'FSO')
25
26theType='DFFF00000100FDFF'x||'0300'x||"MP3"
27DO a=1 to mp3s.0
28 /* Remove EA */
29 rc=SysPutEA(mp3s.a, ".CLASSINFO", '')
30 rc=SysPutEA(mp3s.a, ".TYPE", theType)
31END
32
33rc=SySFileTree(theFolder'\*.wav', 'mp3s', 'FSO')
34theType='DFFF00000100FDFF'x||'0300'x||"WAV"
35DO a=1 to mp3s.0
36 /* Remove EA */
37 rc=SysPutEA(mp3s.a, ".CLASSINFO", '')
38 rc=SysPutEA(mp3s.a, ".TYPE", theType)
39END
40
41rc=SySFileTree(theFolder'\*.ogg', 'mp3s', 'FSO')
42theType='DFFF00000100FDFF'x||'0300'x||"OGG"
43DO a=1 to mp3s.0
44 /* Remove EA */
45 rc=SysPutEA(mp3s.a, ".CLASSINFO", '')
46 rc=SysPutEA(mp3s.a, ".TYPE", theType)
47END
48
49SAY 'Done.'
50
51EXIT
52
53
54usage:
55parse SOURCE . . theName
56SAY
57SAY
58SAY 'Usage:'
59SAY theName' <folder>'
60return
61
62usage2:
63SAY 'This skript removes the .CLASSINFO extended attribute from'
64SAY 'the files inside the folder and all subfolders.'
65SAY ''
66SAY '[31;1;m****************************************[0;m'
67SAY ''
68SAY ' Track names of OGG and Wave files will be lost!'
69SAY ''
70SAY '[31;1;m****************************************[0;m'
71
72RETURN
73
Note: See TracBrowser for help on using the repository browser.