Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
c:\_mikrom\Work\telluoff>erase file1.jrl,1
Could Not Find c:\_mikrom\Work\telluoff\file1.jrl
c:\_mikrom\Work\telluoff>erase "file1.jrl,1"
infile [COLOR=#804040][b]=[/b][/color] [COLOR=#ff00ff]'libout.txt'[/color]
[COLOR=#ff00ff]'dir /B *.* > '[/color]infile
[COLOR=#804040][b]do [/b][/color][COLOR=#804040][b]while[/b][/color][COLOR=#804040][b] [/b][/color][COLOR=#008080]lines([/color]infile[COLOR=#008080])[/color] [COLOR=#804040][b]\=[/b][/color] 0
l [COLOR=#804040][b]=[/b][/color] [COLOR=#008080]linein([/color]infile[COLOR=#008080])[/color]
[COLOR=#804040][b]if[/b][/color] [COLOR=#008080](right([/color]l[COLOR=#804040][b],[/b][/color]4[COLOR=#008080])[/color] [COLOR=#804040][b]=[/b][/color] [COLOR=#ff00ff]'.jrl'[/color] [COLOR=#804040][b]|[/b][/color][highlight #ffff00][COLOR=#000000],[/color][/highlight]
[COLOR=#008080]right([/color]l[COLOR=#804040][b],[/b][/color]6[COLOR=#008080])[/color] [COLOR=#804040][b]=[/b][/color] [COLOR=#ff00ff]'.jrl,1'[/color] [COLOR=#804040][b]|[/b][/color][highlight #ffff00][COLOR=#000000],[/color][/highlight]
[COLOR=#008080]right([/color]l[COLOR=#804040][b],[/b][/color]2[COLOR=#008080])[/color] [COLOR=#804040][b]=[/b][/color] [COLOR=#ff00ff]',2'[/color] [COLOR=#804040][b]|[/b][/color][highlight #ffff00][COLOR=#000000],[/color][/highlight]
[COLOR=#008080]right([/color]l[COLOR=#804040][b],[/b][/color]2[COLOR=#008080])[/color] [COLOR=#804040][b]=[/b][/color] [COLOR=#ff00ff]',3'[/color] [COLOR=#804040][b]|[/b][/color][highlight #ffff00][COLOR=#000000],[/color][/highlight]
[COLOR=#008080]right([/color]l[COLOR=#804040][b],[/b][/color]1[COLOR=#008080])[/color] [COLOR=#804040][b]=[/b][/color] [COLOR=#ff00ff]'%'[/color] [COLOR=#804040][b]|[/b][/color][highlight #ffff00][COLOR=#000000],[/color][/highlight]
[COLOR=#008080]right([/color]l[COLOR=#804040][b],[/b][/color]7[COLOR=#008080])[/color] [COLOR=#804040][b]=[/b][/color] [COLOR=#ff00ff]'SAV.lnk'[/color][COLOR=#804040][b]|[/b][/color][highlight #ffff00][COLOR=#000000],[/color][/highlight]
[COLOR=#008080]right([/color]l[COLOR=#804040][b],[/b][/color]4[COLOR=#008080])[/color] [COLOR=#804040][b]=[/b][/color] [COLOR=#ff00ff]'.SAV'[/color] [COLOR=#804040][b]|[/b][/color][highlight #ffff00][COLOR=#000000],[/color][/highlight]
l [COLOR=#804040][b]=[/b][/color] [COLOR=#ff00ff]'AUTO.brd'[/color][COLOR=#008080])[/color] [COLOR=#804040][b]then[/b][/color] [COLOR=#804040][b]do[/b][/color]
[COLOR=#804040][b]say[/b][/color] [COLOR=#ff00ff]'... deleting file:'[/color] l
[COLOR=#ff00ff]'erase "'[/color][COLOR=#804040][b]||[/b][/color]l[COLOR=#804040][b]||[/b][/color][COLOR=#ff00ff]'"'[/color] [COLOR=#0000ff]/* remove files */[/color]
[COLOR=#804040][b]end[/b][/color]
[COLOR=#804040][b]end[/b][/color]
[COLOR=#804040][b]call [/b][/color][COLOR=#008080]lineout[/color] infile
erase infile
[COLOR=#804040][b]exit[/b][/color]
c:\_mikrom\Work\telluof>dir /B
AUTO.brd
file0.jrl
file1.jrl,1
file2.jrl,2
file3.jrl,3
procfile%
procfile.%
SAV.lnk
sav_file.SAV
telluoff.rex
c:\_mikrom\Work\telluof>rexx telluoff.rex
... deleting file: AUTO.brd
... deleting file: file0.jrl
... deleting file: file1.jrl,1
... deleting file: file2.jrl,2
... deleting file: file3.jrl,3
... deleting file: procfile%
... deleting file: procfile.%
... deleting file: SAV.lnk
... deleting file: sav_file.SAV
c:\_mikrom\Work\telluof>dir /B
telluoff.rex
It works, try it: Create a file your_filename.jrl,1 in a folder.telluoff said:The quoted file name does not work
There are not inclusive ORs. In REXX the operator | means OR, but the operator || means string concatenation - see for example heretelluoff said:I believe the secret was the inclusive or's in the
erase statement and the position of the single and
double quotes.
file_name [COLOR=#804040][b]=[/b][/color] [COLOR=#ff00ff]'file1.jrl,1'[/color]
erase_command [COLOR=#804040][b]=[/b][/color] [COLOR=#ff00ff]'erase "'[/color]file_name[COLOR=#ff00ff]'"'[/color]
[COLOR=#804040][b]say[/b][/color] [COLOR=#ff00ff]'erase_command : '[/color] erase_command
erase_command [COLOR=#804040][b]=[/b][/color] [COLOR=#ff00ff]'erase "'[/color] [COLOR=#804040][b]||[/b][/color] file_name [COLOR=#804040][b]||[/b][/color] [COLOR=#ff00ff]'"'[/color]
[COLOR=#804040][b]say[/b][/color] [COLOR=#ff00ff]'erase_command : '[/color] erase_command