|
Register or have you forgotten your password?
|
|
|
| Amiga Tutorials In this forum, you'll find tutorials for AmigaOS and other forward-looking products. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||||||||
|
Cult Member
![]()
|
Hi,
I am trying to use the delete function to delete the contents of a directory but not the directory itself. For example if I have a directory 'A' that contains directories 'B', 'C' and 'D' then I want to delete directories 'B', 'C' and 'D' but not directory 'A' I know I can delete them one by one by using the following script: Code:
list >ram:DeleteAContents A: all files p=#? lformat="delete all force %p%m" execute ram:DeleteAContents Regards, Sim085 |
||||||||
|
|
|
|
|
#2 | ||||||||
|
Premium Member
Join Date: Nov 2005
Posts: 8,666
|
If I understand correctly what you're trying to do, then the following should do it:
delete A:#? ALL FORCE
__________________
Code:
10 IT'S THE FINAL COUNTDOWN 20 FOR C = 1 TO 2 30 DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA 40 DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA 50 NEXT C 60 NA-NA-NAAAA 70 NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA 80 GOTO 10 |
||||||||
|
|
|
|
|
#3 | ||||||||
|
Cult Member
![]()
|
|
||||||||
|
|
|
![]() |
| Bookmarks |
| Tags |
| function , delete , shell |
| Thread Tools | |
| Display Modes | |
|
|